aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-24 01:15:21 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-24 01:15:21 -0400
commitaff7b38838628a18f384c1f625d71c085c8eee1f (patch)
treeda3aeac68f687d1fb15e5aa138f2b4436acba438 /test
parenta736dfe6a1c7a43c9cb9474255ec34261e5f80ab (diff)
downloadzig-aff7b38838628a18f384c1f625d71c085c8eee1f.tar.gz
zig-aff7b38838628a18f384c1f625d71c085c8eee1f.zip
make switch expressions allow enum literal types
See #683
Diffstat (limited to 'test')
-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 57e2504e5e..623e1e9ccc 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -203,7 +203,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\const InvalidToken = struct {};
\\const ExpectedVarDeclOrFn = struct {};
,
- "tmp.zig:4:9: error: not an enum type",
+ "tmp.zig:4:9: error: expected type '@TagType(Error)', found 'type'",
);
cases.addTest(