lang: core: fmt: Catch printf edge case
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
import "fmt"
|
||||
test fmt.printf("%d%d", 42) {} # should not pass, missing second int
|
||||
-- OUTPUT --
|
||||
# err: errUnify: type error: str != list: /main.mcl @ 2:1-2:30
|
||||
# err: errUnify: func `printf` infer error: number of args (1) doesn't match format string verb count (2)
|
||||
|
||||
Reference in New Issue
Block a user