You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new compiler, calling json.decode with ! in main generates C that does not compile. The old compiler handles it fine. (I know json is deprecated in favour of json2, but it is still in vlib.)
Describe the bug
With the new compiler, calling
json.decodewith!inmaingenerates C that does not compile. The old compiler handles it fine. (I knowjsonis deprecated in favour ofjson2, but it is still in vlib.)Reproduction Steps
v -new-compiler run main.vExpected Behavior
aCurrent Behavior
The C compiler fails:
V version
V 0.5.2 4af2cb4 (
-new-compiler). The old compiler I compare with is what-old-compilerruns, the V 0.5.2 release (7647ce1).Environment details (OS name and version, etc.)
macOS 26.6, arm64, Apple clang 21
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.