summary refs log blame commit diff stats
path: root/nimsuggest/tests/t21185.nim
blob: bf5a0e3cc4c577c109c255ad182ecc5c20ec773f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                               
# 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
"""