Open
Description
reproduction steps
using Scala 2.13.3,
➜ scala git:(2.13.x) scala -Wconf:any:e -e "val 1 = 2"
/tmp/scalacmd4109052077779337000.scala:1: error: Pattern definition introduces Unit-valued member of $anon; consider wrapping it in `locally { ... }`.
val 1 = 2
^
➜ scala git:(2.13.x) scala -Wconf:cat=other-match-analysis:e -e "val 1 = 2"
/tmp/scalacmd6910894456112894911.scala:1: error: Pattern definition introduces Unit-valued member of $anon; consider wrapping it in `locally { ... }`.
val 1 = 2
^
➜ scala git:(2.13.x) scala -Wconf:cat=other-match-analysis:e
Welcome to Scala 2.13.3 (OpenJDK 64-Bit Server VM, Java 15).
Type in expressions for evaluation. Or try :help.
scala> val 1 = 2
scala.MatchError: 2 (of class java.lang.Integer)
... 32 elided
scala>
problem
I can't get it to show me the warning, and not try to evaluate.
Also, just to verify, though I don't remember when it does anything,
scala> :warnings
Can't find any cached warnings.