tsug_enum.nim 306 B

123456789101112131415161718
  1. ## suggestions for enums
  2. type
  3. LogLevel {.pure.} = enum
  4. debug, log, warn, error
  5. FooBar = enum
  6. fbFoo, fbBar
  7. echo fbFoo, fbBar
  8. echo LogLevel.deb#[!]#
  9. discard """
  10. $nimsuggest --tester $file
  11. >sug $1
  12. sug;;skEnumField;;debug;;LogLevel;;*nimsuggest/tests/tsug_enum.nim;;5;;4;;"";;100;;Prefix
  13. """