Nim icon indicating copy to clipboard operation
Nim copied to clipboard

Nimsuggest's `con` command yields the signatures of the outermost call.

Open AmjadHD opened this issue 2 years ago • 1 comments

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

AmjadHD avatar Jul 15 '22 13:07 AmjadHD

@nickysn, since you're working on nimsuggest, maybe you can tackle this one.

AmjadHD avatar Mar 29 '24 15:03 AmjadHD