We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4060c commit c408f6fCopy full SHA for c408f6f
compiler/src/dotty/tools/dotc/typer/Inferencing.scala
@@ -123,7 +123,7 @@ object Inferencing {
123
def inferTypeParams(tree: Tree, pt: Type)(implicit ctx: Context): Tree = tree.tpe match {
124
case tl: TypeLambda =>
125
val (tl1, tvars) = constrained(tl, tree)
126
- val tree1 = tree.withType(tl1).appliedToTypeTrees(tvars)
+ var tree1 = AppliedTypeTree(tree.withType(tl1), tvars)
127
tree1.tpe <:< pt
128
fullyDefinedType(tree1.tpe, "template parent", tree.pos)
129
tree1
0 commit comments