aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-10-31 09:27:26 +0100
committerDmitry Petrashko <dark@d-d.me>2015-10-31 09:27:26 +0100
commitcdfcbc166a331421eaf9a4e9bf64f5c885da19a4 (patch)
tree1105f182ac3936a25e0aa85cd972470c429e697a /src
parentac347485e94061d548bebc794ee133bb1b248a48 (diff)
parent125831b666c3a49d41d89d0d94a155acbe55c52b (diff)
downloaddotty-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.scala2
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
}