This commit is contained in:
Araq
2016-12-29 19:32:43 +01:00
parent 4134240b42
commit 700c024e13
2 changed files with 8 additions and 1 deletions

View File

@@ -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 =

View File

@@ -0,0 +1,7 @@
# bug #5148
type
A = enum foo, bar
B = A
echo B.foo