File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -357,10 +357,8 @@ defined class Term
357
357
scala> def f(e: Exp) = e match { // non-exhaustive warning here
358
358
case _:Fact => 3
359
359
}
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()
364
362
def f(e: Exp) = e match { // non-exhaustive warning here
365
363
^
366
364
f: (e: Exp)Int
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import scala.tools.nsc._
2
2
import scala .tools .partest .ReplTest
3
3
4
4
object Test extends ReplTest {
5
- override def extraSettings = " -deprecation -Xoldpatmat "
5
+ override def extraSettings = " -deprecation"
6
6
def code = <code >
7
7
// basics
8
8
3 + 4
You can’t perform that action at this time.
0 commit comments