summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-04-12 23:47:59 -0700
committerMartin Odersky <odersky@gmail.com>2012-04-12 23:47:59 -0700
commit1c89ab72339fee8767869585f28811d5e2e437b1 (patch)
treec794d4b1d52af53beca4829c6ee159bd53d37af6 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parenta7a1e3a1959f26c9b44b40b328ef217b4ebdbaba (diff)
downloadscala-1c89ab72339fee8767869585f28811d5e2e437b1.tar.gz
scala-1c89ab72339fee8767869585f28811d5e2e437b1.tar.bz2
scala-1c89ab72339fee8767869585f28811d5e2e437b1.zip
Enabling postfix ops feature warning, and working on libs to avoid them.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index ad727d4082..af75c75156 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -10,6 +10,7 @@ import symtab.Flags._
import collection.{ mutable, immutable }
import transform.InfoTransform
import scala.collection.mutable.ListBuffer
+import language.postfixOps
/** <p>
* Post-attribution checking and transformation.
@@ -358,7 +359,7 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R
/** Is the intersection between given two lists of overridden symbols empty?
*/
def intersectionIsEmpty(syms1: List[Symbol], syms2: List[Symbol]) =
- !(syms1 exists (syms2 contains))
+ !(syms1 exists (syms2 contains _))
if (typesOnly) checkOverrideTypes()
else {