breaking syntax change: orelse keyword instead of ?? (#1096)
use the `zig-fmt-optional-default` branch to have zig fmt automatically do the changes. closes #1023
This commit is contained in:
@@ -2296,7 +2296,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
|
||||
\\
|
||||
\\ defer try canFail();
|
||||
\\
|
||||
\\ const a = maybeInt() ?? return;
|
||||
\\ const a = maybeInt() orelse return;
|
||||
\\}
|
||||
\\
|
||||
\\fn canFail() error!void { }
|
||||
|
||||
Reference in New Issue
Block a user