shiika
shiika copied to clipboard
Add location to SkMethod
so that we can print where the method is defined on such errors.
Error: Error: missing argument `c' of method `DefaultArgTest#foo(a: Int, b: Int, c: Int) -> Void'
╭─[./a.sk:14:16]
│
14 │ unless foo(1, 2) == "1299"; puts "fail 1299"; end
· ──┬─
· ╰─── missing argument `c' of method `DefaultArgTest#foo(a: Int, b: Int, c: Int) -> Void'
────╯