aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-10-25 15:34:35 +0100
committerGuillaume Martres <smarter@ubuntu.com>2015-10-25 15:35:01 +0100
commit875d7da572b2367222e3021edcecb2d3cb33cefa (patch)
tree94cc2597ae3763ed8d540646209864f0b67d9612 /src/dotty/tools/dotc/typer/Typer.scala
parente83e8944c5757d4b60de796a505925fa2f1bb4f7 (diff)
downloaddotty-875d7da572b2367222e3021edcecb2d3cb33cefa.tar.gz
dotty-875d7da572b2367222e3021edcecb2d3cb33cefa.tar.bz2
dotty-875d7da572b2367222e3021edcecb2d3cb33cefa.zip
Readd `.widen` which was accidentally removed from the previous commit
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index e0a1c502c..52ea32bbc 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -1266,7 +1266,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
def adapt(tree: Tree, pt: Type, original: untpd.Tree = untpd.EmptyTree)(implicit ctx: Context) = /*>|>*/ track("adapt") /*<|<*/ {
/*>|>*/ ctx.traceIndented(i"adapting $tree of type ${tree.tpe} to $pt", typr, show = true) /*<|<*/ {
if (tree.isDef) interpolateUndetVars(tree, tree.symbol)
- else if (!tree.tpe.isInstanceOf[MethodOrPoly]) interpolateUndetVars(tree, NoSymbol)
+ else if (!tree.tpe.widen.isInstanceOf[MethodOrPoly]) interpolateUndetVars(tree, NoSymbol)
tree.overwriteType(tree.tpe.simplified)
adaptInterpolated(tree, pt, original)
}