fixes #5148
This commit is contained in:
parent
4134240b42
commit
700c024e13
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue