mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Currently when using `use` with nimsuggest on an enum field, it doesn't return the definition of the field. Breaks renaming in IDEs since it will replace all the usages, but not the declaration
16 lines
259 B
Nim
16 lines
259 B
Nim
discard """
|
|
$nimsuggest --tester $file
|
|
>use $1
|
|
def;;skEnumField;;tuse_enum.Colour.Red;;Colour;;$file;;10;;4;;"";;100
|
|
use;;skEnumField;;tuse_enum.Colour.Red;;Colour;;$file;;14;;8;;"";;100
|
|
"""
|
|
|
|
type
|
|
Colour = enum
|
|
Red
|
|
Green
|
|
Blue
|
|
|
|
discard #[!]#Red
|
|
|