aboutsummaryrefslogtreecommitdiff
path: root/test/compile_errors.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-10 01:13:51 -0400
committerGitHub <noreply@github.com>2018-06-10 01:13:51 -0400
commit77678b2cbc7ac9ba2d5d4725241f6a9f7ac64fa4 (patch)
tree207f75d690aa32ba054c0a4a78ad05ad1ca9902e /test/compile_errors.zig
parentec1b6f66737f8c3cbc0420715c2c502c7e710081 (diff)
downloadzig-77678b2cbc7ac9ba2d5d4725241f6a9f7ac64fa4.tar.gz
zig-77678b2cbc7ac9ba2d5d4725241f6a9f7ac64fa4.zip
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
Diffstat (limited to 'test/compile_errors.zig')
-rw-r--r--test/compile_errors.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index 1c737a59e7..5ec2759032 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -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 { }