Skip to content

Commit 76972ab

Browse files
authored
Merge pull request #4711 from janrock-ylb/master
Fix #4674: Add regression test
2 parents 8642863 + 21b2f5a commit 76972ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

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

Comments
 (0)