tenum_field.nim 362 B

123456789101112131415161718
  1. discard """
  2. $nimsuggest --tester $file
  3. >sug $1
  4. >sug $2
  5. sug;;skConst;;tenum_field.BarFoo;;int literal(1);;$file;;10;;6;;"";;100;;Prefix
  6. """
  7. proc something() = discard
  8. const BarFoo = 1
  9. type
  10. Foo = enum
  11. # Test that typing the name doesn't give suggestions
  12. somethi#[!]#
  13. # Test that the right hand side still gets suggestions
  14. another = BarFo#[!]#