Skip to content

Commit 875d7da

Browse files
committed
Readd .widen which was accidentally removed from the previous commit
1 parent e83e894 commit 875d7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
12661266
def adapt(tree: Tree, pt: Type, original: untpd.Tree = untpd.EmptyTree)(implicit ctx: Context) = /*>|>*/ track("adapt") /*<|<*/ {
12671267
/*>|>*/ ctx.traceIndented(i"adapting $tree of type ${tree.tpe} to $pt", typr, show = true) /*<|<*/ {
12681268
if (tree.isDef) interpolateUndetVars(tree, tree.symbol)
1269-
else if (!tree.tpe.isInstanceOf[MethodOrPoly]) interpolateUndetVars(tree, NoSymbol)
1269+
else if (!tree.tpe.widen.isInstanceOf[MethodOrPoly]) interpolateUndetVars(tree, NoSymbol)
12701270
tree.overwriteType(tree.tpe.simplified)
12711271
adaptInterpolated(tree, pt, original)
12721272
}

0 commit comments

Comments
 (0)