Nim
Nim copied to clipboard
Nimsuggest's `con` command yields the signatures of the outermost call.
In nested calls, Nimsuggest's con
command yields the signatures of the outermost call.
Example
proc f1(x: int): int = x + 1
proc f2(x: string): int = x.len
proc f3(x: int): string = $x
f1(f2(f3(|))) # | represents the caret
Current Output
> con test_con.nim:7:9
.con skProc test_con.f1 proc (x: int): int D:\test_con.nim 1 5 "" 100
Expected Output
> con test_con.nim:7:9
.con skProc test_con.f3 proc (x: int): string D:\test_con.nim 5 5 "" 100
@nickysn, since you're working on nimsuggest, maybe you can tackle this one.