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














                                                                                   
# tests for use and structures

type
  Foo* = ref object of RootObj
    bar*: string

proc test(f: Foo) =
  echo f.#[!]#bar

discard """
$nimsuggest --tester $file
>use $1
def	skField	tuse_structure.Foo.bar	string	$file	5	4	""	100
use	skField	tuse_structure.Foo.bar	string	$file	8	9	""	100
"""