allow integer and float literals to be passed to var params

closes #623
This commit is contained in:
Andrew Kelley
2018-04-11 14:44:32 -04:00
parent a7f77d7c6a
commit e48e707c32
3 changed files with 19 additions and 2 deletions

View File

@@ -1723,7 +1723,7 @@ pub fn addCases(cases: &tests.CompileErrorContext) void {
\\}
\\
\\export fn entry() usize { return @sizeOf(@typeOf(bar)); }
, ".tmp_source.zig:10:16: error: parameter of type '(integer literal)' requires comptime");
, ".tmp_source.zig:10:16: error: compiler bug: integer and float literals in var args function must be casted");
cases.add("assign too big number to u16",
\\export fn foo() void {