tv3.nim 554 B

12345678910111213141516171819202122232425262728
  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. #[!]#
  8. discard """
  9. $nimsuggest --v3 --tester $file
  10. >use $1
  11. def skField tv3.Foo.bar string $file 5 4 "" 100
  12. use skField tv3.Foo.bar string $file 8 9 "" 100
  13. >def $1
  14. def skField tv3.Foo.bar string $file 5 4 "" 100
  15. >sug $1
  16. sug skField bar string $file 5 4 "" 100 Prefix
  17. >globalSymbols test
  18. def skProc tv3.test proc (f: Foo){.gcsafe, raises: <inferred> [].} $file 7 5 "" 100
  19. >globalSymbols Foo
  20. def skType tv3.Foo Foo $file 4 2 "" 100
  21. >def $2
  22. >use $2
  23. """