File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1266,7 +1266,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1266
1266
def adapt (tree : Tree , pt : Type , original : untpd.Tree = untpd.EmptyTree )(implicit ctx : Context ) = /* >|>*/ track(" adapt" ) /* <|<*/ {
1267
1267
/* >|>*/ ctx.traceIndented(i " adapting $tree of type ${tree.tpe} to $pt" , typr, show = true ) /* <|<*/ {
1268
1268
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 )
1270
1270
tree.overwriteType(tree.tpe.simplified)
1271
1271
adaptInterpolated(tree, pt, original)
1272
1272
}
You can’t perform that action at this time.
0 commit comments