aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t5407.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t5407.scala')
-rw-r--r--tests/pending/run/t5407.scala17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/pending/run/t5407.scala b/tests/pending/run/t5407.scala
deleted file mode 100644
index cc761e5c0..000000000
--- a/tests/pending/run/t5407.scala
+++ /dev/null
@@ -1,17 +0,0 @@
-case class Foo(private val x: Int, y: Option[Int], z: Boolean)
-
-object Test extends dotty.runtime.LegacyApp {
- def foo(x: Foo) = x match {
- case Foo(x, Some(y), z) => y
- case Foo(x, y, z) => 0
- }
- val x = Foo(1, Some(2), false)
- println(foo(x))
-
-
- def bar(x: Foo) = x match {
- case Foo(x, Some(y), z) => y
- case Foo(x, None, z) => 0
- }
- println(bar(x))
-}