shiika icon indicating copy to clipboard operation
shiika copied to clipboard

Add location to SkMethod

Open yhara opened this issue 2 years ago • 0 comments

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'
────╯

yhara avatar Feb 04 '23 08:02 yhara