File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1475,8 +1475,7 @@ class Typer extends Namer
14751475 */
14761476 def maybeCall (ref : Tree , psym : Symbol , cinfo : Type ): Tree = cinfo.stripPoly match {
14771477 case cinfo @ MethodType (Nil ) if cinfo.resultType.isImplicitMethod =>
1478- val icall = New (ref).select(nme.CONSTRUCTOR ).appliedToNone
1479- typedExpr(untpd.TypedSplice (icall))(superCtx)
1478+ typedExpr(untpd.New (ref, Nil ))(superCtx)
14801479 case cinfo @ MethodType (Nil ) if ! cinfo.resultType.isInstanceOf [MethodType ] =>
14811480 ref
14821481 case cinfo : MethodType =>
Original file line number Diff line number Diff line change 1+ trait T [A : Numeric ]
2+ class TX [A : Numeric ] extends T [A ]
3+ class TY [A : Numeric ] extends T [A ]()
4+
5+ trait S [A : Numeric ](x : Int )
6+ class SX [A : Numeric ] extends S [A ](0 )
You can’t perform that action at this time.
0 commit comments