aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-17 11:05:23 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-17 11:05:23 +0200
commit9d66f8688291cb59ad78784d792dcf28a5527142 (patch)
tree8d6283fd1ac1befa48641990841a0097ae46d73c /src/dotty/tools/dotc/typer/Typer.scala
parent0eb2d76c467a53786ae6147c9c983c23ab0894c8 (diff)
downloaddotty-9d66f8688291cb59ad78784d792dcf28a5527142.tar.gz
dotty-9d66f8688291cb59ad78784d792dcf28a5527142.tar.bz2
dotty-9d66f8688291cb59ad78784d792dcf28a5527142.zip
Adress reviewers comments
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index 13b6167b1..d0d41a214 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -599,7 +599,10 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
val params = args.asInstanceOf[List[untpd.ValDef]]
pt match {
- case pt: TypeVar if untpd.isFunctionWithImplicitParamType(tree) =>
+ case pt: TypeVar if untpd.isFunctionWithUnknownParamType(tree) =>
+ // try to instantiate `pt` if this is possible. If it does not
+ // work the error will be reported later in `inferredParam`,
+ // when we try to infer the parameter type.
isFullyDefined(pt, ForceDegree.noBottom)
case _ =>
}