fix regression on struct field with undefined type

This commit is contained in:
Andrew Kelley
2019-08-26 14:01:59 -04:00
parent 73a7747a9c
commit d316f70450
5 changed files with 40 additions and 52 deletions

View File

@@ -404,7 +404,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\ const foo: Foo = undefined;
\\}
,
"tmp.zig:2:8: error: expected type 'type', found '(undefined)'",
"tmp.zig:2:8: error: use of undefined value here causes undefined behavior",
);
cases.add(