summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker
diff options
context:
space:
mode:
authorsoc <simon@ochsenreither.de>2016-04-04 22:07:55 +0200
committerLukas Rytz <lukas.rytz@typesafe.com>2016-04-04 22:07:55 +0200
commitd8aa2cdfb83de35cc0e427f26530195ccff46d51 (patch)
treeb5eef2fc5066961b4cfa9b672c8e2212d38e7d50 /src/compiler/scala/tools/nsc/typechecker
parent3c466670d2526f4a1ff77e005fbc5b32cc31f52f (diff)
downloadscala-d8aa2cdfb83de35cc0e427f26530195ccff46d51.tar.gz
scala-d8aa2cdfb83de35cc0e427f26530195ccff46d51.tar.bz2
scala-d8aa2cdfb83de35cc0e427f26530195ccff46d51.zip
General cleanups and less warnings during a Scala build
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala2
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
index abc3e91ed2..c03094bc6a 100644
--- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
@@ -5,8 +5,6 @@
package scala.tools.nsc
package typechecker
-import scala.language.higherKinds
-
import symtab.Flags._
import scala.reflect.internal.util.StringOps.ojoin
import scala.reflect.internal.util.ListOfNil
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index fdf7058ab1..8f5c4b9f6d 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -2882,7 +2882,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
val paramsMissingType = mutable.ArrayBuffer.empty[ValDef] //.sizeHint(numVparams) probably useless, since initial size is 16 and max fun arity is 22
// first, try to define param types from expected function's arg types if needed
foreach2(vparams, argpts) { (vparam, argpt) =>
- if (vparam.tpt isEmpty) {
+ if (vparam.tpt.isEmpty) {
if (isFullyDefined(argpt)) vparam.tpt setType argpt
else paramsMissingType += vparam