We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
struct Foo { mut x i32 } fun main() { mut a := Foo{} b := a a.x = 3 println(a) println(b) }
JS backend:
Foo{ x = 3 } Foo{ x = 3 }
C backend:
Foo{ x = 3 } Foo{ x = 0 }
JS should behave like C
No response
Version: Bait 0.0.7 81a5a9a OS: linux/x64 Git: git version 2.47.0 Node.js: v23.1.0 CC: cc (GCC) 14.2.1 20240910
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description and Reproduction Sample
Current Behavior
JS backend:
C backend:
Expected Behavior
JS should behave like C
Possible Solution and Additional Information
No response
Environment details (bait doctor)
Version: Bait 0.0.7 81a5a9a
OS: linux/x64
Git: git version 2.47.0
Node.js: v23.1.0
CC: cc (GCC) 14.2.1 20240910
The text was updated successfully, but these errors were encountered: