fix: print correct number of provided arguments in min/max error message

This commit is contained in:
WillLillis
2024-09-29 20:55:08 -04:00
committed by Veikka Tuominen
parent f99097e68f
commit 3bcdca07a3
2 changed files with 10 additions and 1 deletions

View 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