diff options
Diffstat (limited to 'tests/pending/run/t7571.scala')
-rw-r--r-- | tests/pending/run/t7571.scala | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/pending/run/t7571.scala b/tests/pending/run/t7571.scala deleted file mode 100644 index fd4babee3..000000000 --- a/tests/pending/run/t7571.scala +++ /dev/null @@ -1,12 +0,0 @@ -class Foo(val a: Int) extends AnyVal { - def foo = { {case x => x + a}: PartialFunction[Int, Int]} - - def bar = (new {}).toString -} - -object Test extends dotty.runtime.LegacyApp { - val x = new Foo(1).foo.apply(2) - assert(x == 3, x) - val s = new Foo(1).bar - assert(s.nonEmpty, s) -} |