Skip to content

Commit 4ac25fa

Browse files
janrockdevjanrock-hwx
authored andcommitted
Fix scala#4674: Add regression test
1 parent 42698ae commit 4ac25fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)