tv3.nim 642 B

1234567891011121314151617181920212223242526
  1. # tests v3
  2. type
  3. Foo* = ref object of RootObj
  4. bar*: string
  5. proc test(f: Foo) =
  6. echo f.ba#[!]#r
  7. discard """
  8. $nimsuggest --v3 --tester $file
  9. >use $1
  10. def skField tv3.Foo.bar string $file 5 4 "" 100
  11. use skField tv3.Foo.bar string $file 8 9 "" 100
  12. >def $1
  13. def skField tv3.Foo.bar string $file 5 4 "" 100
  14. >outline $1
  15. outline skType tv3.Foo Foo $file 4 2 "" 100
  16. outline skField tv3.Foo.bar string $file 5 4 "" 100
  17. outline skProc tv3.test proc (f: Foo){.gcsafe, locks: 0.} $file 7 5 "" 100
  18. >sug $1
  19. sug skField bar string $file 5 4 "" 100 Prefix
  20. >globalSymbols test
  21. def skProc tv3.test proc (f: Foo){.gcsafe, locks: 0.} $file 7 5 "" 100
  22. """