diff options
Diffstat (limited to 'tests/pending/pos/t6231.scala')
-rw-r--r-- | tests/pending/pos/t6231.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/pending/pos/t6231.scala b/tests/pending/pos/t6231.scala deleted file mode 100644 index 1e5b4e0e1..000000000 --- a/tests/pending/pos/t6231.scala +++ /dev/null @@ -1,15 +0,0 @@ -object Bug { - def bar(ev: Any) = { - trait X { - def qux = { () => ev } - } - new X {}.qux() - - // workaround - trait Y { - val ev2 = ev // manually capture `ev` so that `ev2` is added to the trait interface. - def qux = { () => ev2 } - } - } -} - |