diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-05 17:04:34 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-06 17:29:21 +0200 |
commit | 3e1631e8f71f73f5275b1595bd85de25625bb2de (patch) | |
tree | e6542f461fc4515a231522bccb7117d5feccc255 /src/interactive | |
parent | a8c05274f738943ae58ecefda4b012b9daf5d8dc (diff) | |
download | scala-3e1631e8f71f73f5275b1595bd85de25625bb2de.tar.gz scala-3e1631e8f71f73f5275b1595bd85de25625bb2de.tar.bz2 scala-3e1631e8f71f73f5275b1595bd85de25625bb2de.zip |
SI-7643 Enable newPatternMatching in interactive.
Without it, the enclosed test fails with:
ArrayBuffer(Problem(RangePosition(partial-fun/src/PartialFun.scala, 62, 62, 77),type mismatch;
found : Int => Int
required: PartialFunction[Int,Int],2))
And with that, we can remove this option altogether.
Diffstat (limited to 'src/interactive')
-rw-r--r-- | src/interactive/scala/tools/nsc/interactive/Global.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/interactive/scala/tools/nsc/interactive/Global.scala b/src/interactive/scala/tools/nsc/interactive/Global.scala index 721fbf24c7..bc6df9eb25 100644 --- a/src/interactive/scala/tools/nsc/interactive/Global.scala +++ b/src/interactive/scala/tools/nsc/interactive/Global.scala @@ -32,7 +32,6 @@ trait InteractiveAnalyzer extends Analyzer { override def newTyper(context: Context): InteractiveTyper = new Typer(context) with InteractiveTyper override def newNamer(context: Context): InteractiveNamer = new Namer(context) with InteractiveNamer - override protected def newPatternMatching = false trait InteractiveTyper extends Typer { override def canAdaptConstantTypeToLiteral = false |