fix: print correct number of provided arguments in min/max error message
This commit is contained in:
committed by
Veikka Tuominen
parent
f99097e68f
commit
3bcdca07a3
9
test/cases/compile_errors/minmax_missing_args.zig
Normal file
9
test/cases/compile_errors/minmax_missing_args.zig
Normal file
@@ -0,0 +1,9 @@
|
||||
comptime { _ = @min(1); }
|
||||
comptime { _ = @max(1); }
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :1:16: error: expected at least 2 arguments, found 1
|
||||
// :2:16: error: expected at least 2 arguments, found 1
|
||||
Reference in New Issue
Block a user