We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eaab9b commit 7309b35Copy full SHA for 7309b35
tests/pos/i8956.scala renamed to tests/pos-special/fatal-warnings/i8956.scala
@@ -8,12 +8,6 @@ def check1(i: Double | Int | String): Unit = {
8
case _ => println("categorical")
9
}
10
11
-/*
12
- [warn] 25 | case a:Numeric => println(s"numeric = $a")
13
- [warn] | ^^^^^^^^^
14
- [warn] | the type test for gg.SlidingIssue.Numeric cannot be checked at runtime
15
- [warn] one warning found
16
- */
17
def check2(i: Double | Int | String): Unit = {
18
i match {
19
case a:Numeric => println(s"numeric = $a")
0 commit comments