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
1475
1475
*/
1476
1476
def maybeCall (ref : Tree , psym : Symbol , cinfo : Type ): Tree = cinfo.stripPoly match {
1477
1477
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)
1480
1479
case cinfo @ MethodType (Nil ) if ! cinfo.resultType.isInstanceOf [MethodType ] =>
1481
1480
ref
1482
1481
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