aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index e4081f633..5fd995839 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -23,6 +23,7 @@ import ErrorReporting._
import Inferencing.{FunProto, PolyProto, Compatibility, normalize}
import EtaExpansion.etaExpand
import util.Positions._
+import util.common._
import util.SourcePosition
import collection.mutable
import annotation.tailrec
@@ -482,7 +483,7 @@ class Typer extends Namer with Applications with Implicits {
val MethodType(_, paramTypes) = meth.info
paramTypes
case _ =>
- params map Function.const(WildcardType)
+ params map alwaysWildcardType
}
val inferredParams: List[untpd.ValDef] =
for ((param, formal) <- params zip protoFormals) yield