mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 00:24:16 +00:00
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>
18 lines
362 B
Nim
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#[!]#
|