Skip to content

Commit d787f67

Browse files
paulpadriaanm
authored andcommitted
Removed old pattern matcher.
1 parent cec4c5a commit d787f67

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/files/jvm/interpreter.check

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,8 @@ defined class Term
357357
scala> def f(e: Exp) = e match { // non-exhaustive warning here
358358
case _:Fact => 3
359359
}
360-
<console>:18: warning: match is not exhaustive!
361-
missing combination Exp
362-
missing combination Term
363-
360+
<console>:18: warning: match may not be exhaustive.
361+
It would fail on the following inputs: Exp(), Term()
364362
def f(e: Exp) = e match { // non-exhaustive warning here
365363
^
366364
f: (e: Exp)Int

test/files/jvm/interpreter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import scala.tools.nsc._
22
import scala.tools.partest.ReplTest
33

44
object Test extends ReplTest {
5-
override def extraSettings = "-deprecation -Xoldpatmat"
5+
override def extraSettings = "-deprecation"
66
def code = <code>
77
// basics
88
3+4

0 commit comments

Comments
 (0)