aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Namer.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2014-06-20 15:15:16 +0200
committerodersky <odersky@gmail.com>2014-06-20 15:15:16 +0200
commita8cb929a368f01819c16393a97291e82bc4a2738 (patch)
tree82af4c43d1167cc0d897d31b1afa855c068f856e /src/dotty/tools/dotc/typer/Namer.scala
parent7bc5cd18ee4f881f223e9a317e6c6a329942d5af (diff)
parentc2175ec910165308e81c48bd8ca8910c50862be4 (diff)
downloaddotty-a8cb929a368f01819c16393a97291e82bc4a2738.tar.gz
dotty-a8cb929a368f01819c16393a97291e82bc4a2738.tar.bz2
dotty-a8cb929a368f01819c16393a97291e82bc4a2738.zip
Merge pull request #136 from dotty-staging/fix/systematic-prototypes
Fix/systematic prototypes
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Namer.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala
index e9195a072..681523bd2 100644
--- a/src/dotty/tools/dotc/typer/Namer.scala
+++ b/src/dotty/tools/dotc/typer/Namer.scala
@@ -459,7 +459,8 @@ class Namer { typer: Typer =>
def checkedParentType(parent: untpd.Tree): Type = {
val ptype = parentType(parent)(ctx.fresh addMode Mode.InSuperCall)
- checkClassTypeWithStablePrefix(ptype, parent.pos, traitReq = parent ne parents.head)
+ if (cls.isRefinementClass) ptype
+ else checkClassTypeWithStablePrefix(ptype, parent.pos, traitReq = parent ne parents.head)
}
val selfInfo =