Files
Nim/nimsuggest/tests/tenum_field.nim
Jake Leahy 81c0513644 Don't provide suggestions for enum fields (#22959)
Currently the suggestions create a lot of noise when creating enum
fields. I don't see any way of a macro creating fields (when called
inside an enum) so it should be safe to not show suggestions

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2023-11-20 21:12:54 +01:00

18 lines
362 B
Nim

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