-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Milestone
Description
If we do a simple undefined optional (var foo: ?u32 = undefined;
), this gets converted to null only in debug mode: https://zig.godbolt.org/z/5a6ca8bz8. This is correctly set to 0xAAAA in release-safe.
This feels like a footgun as simple testing will trigger wrong assumptions.
Guigui220D and sagehanematu3ba and midischwarz12
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.