diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-24 01:15:21 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-24 01:15:21 -0400 |
| commit | aff7b38838628a18f384c1f625d71c085c8eee1f (patch) | |
| tree | da3aeac68f687d1fb15e5aa138f2b4436acba438 /test | |
| parent | a736dfe6a1c7a43c9cb9474255ec34261e5f80ab (diff) | |
| download | zig-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.zig | 2 |
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( |
