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