mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
fixes #5148
This commit is contained in:
@@ -903,7 +903,7 @@ proc makeDeref(n: PNode): PNode =
|
||||
|
||||
const
|
||||
tyTypeParamsHolders = {tyGenericInst, tyCompositeTypeClass}
|
||||
tyDotOpTransparent = {tyVar, tyPtr, tyRef}
|
||||
tyDotOpTransparent = {tyVar, tyPtr, tyRef, tyAlias}
|
||||
|
||||
proc readTypeParameter(c: PContext, typ: PType,
|
||||
paramName: PIdent, info: TLineInfo): PNode =
|
||||
|
||||
7
tests/enum/tenumalias.nim
Normal file
7
tests/enum/tenumalias.nim
Normal file
@@ -0,0 +1,7 @@
|
||||
# bug #5148
|
||||
|
||||
type
|
||||
A = enum foo, bar
|
||||
B = A
|
||||
|
||||
echo B.foo
|
||||
Reference in New Issue
Block a user