aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-28 14:24:11 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-28 14:41:21 +0100
commit76f07f7a5e03ac685270c7af4aa736ca84a00f1f (patch)
tree7f59a4ed0d26792070c3d0b1e9c3f257e4b023e3 /src/dotty/tools/dotc/typer/Typer.scala
parentc39c2af036e9e69fc339b805a0869126efadae0f (diff)
downloaddotty-76f07f7a5e03ac685270c7af4aa736ca84a00f1f.tar.gz
dotty-76f07f7a5e03ac685270c7af4aa736ca84a00f1f.tar.bz2
dotty-76f07f7a5e03ac685270c7af4aa736ca84a00f1f.zip
Hoisting out commonly used values into util.common
... because this cuts down on object creations. Also, some polishings in Denotations.
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