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
0.12.0-dev.2341+92211135f
0.12.0-dev.365+a8a83b6
emacs 29.1 (eglot)
With variable type hints enabled (should be the default) paste to your editor:
const std = @import("std"); fn myNull() ?i32 { return null; } pub fn main() !void { const y = myNull(); const x = myNull() orelse error.NullValue; std.debug.print("My value: {d}\n", .{try x}); _ = y; }
In my editor notice that type hint for x is i32:
x
i32
Expected type hint for x is error{NullValue}!i32
error{NullValue}!i32
No response
The text was updated successfully, but these errors were encountered:
orelse
No branches or pull requests
Zig Version
0.12.0-dev.2341+92211135f
Zig Language Server Version
0.12.0-dev.365+a8a83b6
Client / Code Editor / Extensions
emacs 29.1 (eglot)
Steps to Reproduce and Observed Behavior
With variable type hints enabled (should be the default) paste to your editor:
In my editor notice that type hint for
x
isi32
:Expected Behavior
Expected type hint for
x
iserror{NullValue}!i32
Relevant log output
No response
The text was updated successfully, but these errors were encountered: