diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-10-31 09:27:26 +0100 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-10-31 09:27:26 +0100 |
commit | cdfcbc166a331421eaf9a4e9bf64f5c885da19a4 (patch) | |
tree | 1105f182ac3936a25e0aa85cd972470c429e697a /src | |
parent | ac347485e94061d548bebc794ee133bb1b248a48 (diff) | |
parent | 125831b666c3a49d41d89d0d94a155acbe55c52b (diff) | |
download | dotty-cdfcbc166a331421eaf9a4e9bf64f5c885da19a4.tar.gz dotty-cdfcbc166a331421eaf9a4e9bf64f5c885da19a4.tar.bz2 dotty-cdfcbc166a331421eaf9a4e9bf64f5c885da19a4.zip |
Merge pull request #890 from dotty-staging/fix-#879
Fix #879
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 3ca728895..569e4f7d5 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -1027,7 +1027,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit */ def ensureConstrCall(cls: ClassSymbol, parents: List[Tree])(implicit ctx: Context): List[Tree] = { val firstParent :: otherParents = parents - if (firstParent.isType && !(cls is Trait)) + if (firstParent.isType && !(cls is Trait) && !cls.is(JavaDefined)) typed(untpd.New(untpd.TypedSplice(firstParent), Nil)) :: otherParents else parents } |