diff options
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 42f720c48..29a5c787b 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -2882,10 +2882,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}, expectedType: PType if optOwnedRefs in c.config.globalOptions: result.typ = makeVarType(c, result.typ, tyOwned) of skEnumField: - if overloadableEnums in c.features: - result = enumFieldSymChoice(c, n, s) - else: - result = semSym(c, n, s, flags) + result = enumFieldSymChoice(c, n, s) else: result = semSym(c, n, s, flags) if expectedType != nil and isSymChoice(result): |