diff options
| author | Jimmi Holst Christensen <jimmiholstchristensen@gmail.com> | 2018-06-30 17:35:06 +0200 |
|---|---|---|
| committer | Jimmi Holst Christensen <jimmiholstchristensen@gmail.com> | 2018-06-30 17:35:06 +0200 |
| commit | 01bd5c46e177ae59f72197063c374e845eea3ff3 (patch) | |
| tree | 9829dd206b9062b28994edc6581fda926acfe03c /test/compile_errors.zig | |
| parent | 616fe798c801baa5fa7238f5fc576a5090938999 (diff) | |
| download | zig-01bd5c46e177ae59f72197063c374e845eea3ff3.tar.gz zig-01bd5c46e177ae59f72197063c374e845eea3ff3.zip | |
Revert "ir_resolve_const now checks recursivly for undef values"
This reverts commit 4c3f27ce1ea17b5236a022971ebace73a02b7c2b.
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 8749f5b560..2247f0af96 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -4124,19 +4124,4 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { , ".tmp_source.zig:3:36: error: @ArgType could not resolve the type of arg 0 because 'fn(var)var' is generic", ); - - cases.add( - "Trying to pass undefined array to function taking comptime array by value", - \\fn a(comptime b: [2]u8) u8 { return b[0]; } - \\ - \\test "" { - \\ const arr: [2]u8 = undefined; - \\ _ = a(arr); - \\} - , - ".tmp_source.zig:5:11: error: use of undefined value", - ); - - - } |
