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 4ac25fa commit 21b2f5aCopy full SHA for 21b2f5a
tests/neg-custom-args/fatal-warnings/i4674.scala
@@ -1,9 +1,8 @@
1
-object Testi4674 {
2
- def T(x: String) = {
+class Test {
+ def test(x: String) = {
3
x.foreach {
4
case 's' => println("s")
5
- case c: Char => println(c) // error
+ case c: Char => println(c) // error: type test always succeeds
6
}
7
8
- T("test")
9
-}
+}
0 commit comments