tuse_structure.nim 294 B

12345678910111213141516
  1. # tests for use and structures
  2. type
  3. Foo* = ref object of RootObj
  4. bar*: string
  5. proc test(f: Foo) =
  6. echo f.#[!]#bar
  7. discard """
  8. $nimsuggest --tester $file
  9. >use $1
  10. def skField tuse_structure.Foo.bar string $file 5 4 "" 100
  11. use skField tuse_structure.Foo.bar string $file 8 9 "" 100
  12. """