Skip to content

Commit 6fac433

Browse files
committed
Remove debug println
1 parent 7329957 commit 6fac433

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,11 +1670,8 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
16701670

16711671
def adaptType(tp: Type): Tree = {
16721672
val tree1 =
1673-
if (pt != AnyTypeConstructorProto && tp.typeParamSymbols.nonEmpty) {
1674-
println(i"lam abs $tp with tparams ${tp.typeParamSymbols}%, %")
1675-
tree.withType(tree.tpe.EtaExpand(tp.typeParamSymbols))
1676-
}
1677-
else tree
1673+
if ((pt eq AnyTypeConstructorProto) || tp.typeParamSymbols.isEmpty) tree
1674+
else tree.withType(tree.tpe.EtaExpand(tp.typeParamSymbols))
16781675
if ((ctx.mode is Mode.Pattern) || tree1.tpe <:< pt) tree1
16791676
else err.typeMismatch(tree1, pt)
16801677
}

0 commit comments

Comments
 (0)