diff options
Diffstat (limited to 'rod/suggest.nim')
-rw-r--r-- | rod/suggest.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rod/suggest.nim b/rod/suggest.nim index f553bde90..6f4babe63 100644 --- a/rod/suggest.nim +++ b/rod/suggest.nim @@ -123,7 +123,7 @@ proc suggestFieldAccess(c: PContext, n: PNode) = else: # fallback: suggestEverything(c, n) - elif typ.kind == tyEnum: + elif typ.kind == tyEnum and n.kind == nkSym and n.sym.kind == skType: # look up if the identifier belongs to the enum: var t = typ while t != nil: |