Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checker: fix json.encode_pretty for struct expressions #22897

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Nov 17, 2024

Fixes:

error: expression cannot be passed as `voidptr`
   20 | 
   21 | if !os.is_file(path) {
   22 |     os.write_file(path, json.encode_pretty(Config{}))!

Huly®: V_0.6-21340

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit 3bf459c into vlang:master Nov 18, 2024
72 checks passed
@ttytm ttytm deleted the json/encode-pretty-struct-expr branch November 18, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants