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