Skip to content

Commit a27bc12

Browse files
authored
Merge pull request #4093 from dotty-staging/add-test-for-#2456
Add test for #2456
2 parents 37c2f93 + 4e71570 commit a27bc12

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/run/i2456.check

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
buzzzzzzz

tests/run/i2456.scala

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Bees {
2+
def f: PartialFunction[Bee, Unit] = { case Bee(_) => println("buzzzzzzz") }
3+
4+
f(new Bee("buzz"))
5+
6+
case class Bee(value: String)
7+
}
8+
9+
object Test {
10+
def main(args: Array[String]): Unit = {
11+
new Bees
12+
}
13+
}

0 commit comments

Comments
 (0)