ttype_decl.nim 462 B

123456789101112131415161718
  1. discard """
  2. $nimsuggest --tester --maxresults:3 $file
  3. >sug $1
  4. sug;;skType;;ttype_decl.Other;;Other;;$file;;10;;2;;"";;100;;None
  5. sug;;skType;;system.int;;int;;*lib/system/basic_types.nim;;2;;2;;"";;100;;None
  6. sug;;skType;;system.string;;string;;*lib/system/basic_types.nim;;23;;2;;"";;100;;None
  7. """
  8. import strutils
  9. type
  10. Other = object ## My other object.
  11. Foo = #[!]#
  12. OldOne {.deprecated.} = object
  13. x: int
  14. proc main(f: Foo) =
  15. # XXX why no doc comments?