Commit c4840d78fb

Andrew Kelley <superjoe30@gmail.com>
2018-04-21 08:00:14
add test case for #936
1 parent 1098545
Changed files (1)
test/compile_errors.zig
@@ -1,6 +1,11 @@
 const tests = @import("tests.zig");
 
 pub fn addCases(cases: &tests.CompileErrorContext) void {
+    cases.add("invalid field access in comptime",
+        \\comptime { var x = doesnt_exist.whatever; }
+    ,
+        ".tmp_source.zig:1:20: error: use of undeclared identifier 'doesnt_exist'");
+
     cases.add("suspend inside suspend block",
         \\const std = @import("std");
         \\