Files
Nim/nimsuggest/tests/t21185.nim
Jake Leahy 3d5dbf8f96 Fix nimsuggest not suggesting fields in when theres static parameters (#21189)
Don't check against empty arguments

Add test case
2022-12-28 07:35:11 +01:00

19 lines
358 B
Nim

# Reduced case of 21185. Issue was first parameter being static
proc foo(x: static[int]) = discard
type
Person = object
name: string
age: int
let p = Person()
p.#[!]#
discard """
$nimsuggest --tester --v3 --maxresults:2 $file
>sug $1
sug;;skField;;age;;int;;$file;;8;;4;;"";;100;;None
sug;;skField;;name;;string;;$file;;7;;4;;"";;100;;None
"""