Change error when runtime value passed to comptime arg

This commit is contained in:
frmdstryr
2020-10-16 13:16:09 -04:00
committed by Veikka Tuominen
parent 129ccad434
commit a39d3155b4
2 changed files with 13 additions and 8 deletions

View File

@@ -5314,7 +5314,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\
\\export fn entry() usize { return @sizeOf(@TypeOf(test1)); }
, &[_][]const u8{
"tmp.zig:3:16: error: unable to evaluate constant expression",
"tmp.zig:3:16: error: runtime value cannot be passed to comptime arg",
});
cases.add("assign null to non-optional pointer",