Change error when runtime value passed to comptime arg
This commit is contained in:
committed by
Veikka Tuominen
parent
129ccad434
commit
a39d3155b4
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user