aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t8111.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t8111.scala')
-rw-r--r--tests/pending/pos/t8111.scala24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/pending/pos/t8111.scala b/tests/pending/pos/t8111.scala
deleted file mode 100644
index 3f0e766ce..000000000
--- a/tests/pending/pos/t8111.scala
+++ /dev/null
@@ -1,24 +0,0 @@
-trait T {
-
- def crashy(ma: Any): Unit = {
- // okay
- val f1 = (u: Unit) => ma
- foo(f1)()
- foo((u: Unit) => ma)
- foo(0, (u: Any) => ma) apply ()
-
- // crash due to side effects on the onwer of the symbol in the
- // qualifier or arguments of the application during an abandoned
- // names/defaults transform. The code type checkes because of
- // autp-tupling which promotes and empty parmater list to `(): Unit`
- foo((u: Any) => ma)()
-
- {{(u: Any) => ma}; this}.foo(0)()
-
- foo({def foo = ma; 0})()
-
- {def foo = ma; this}.foo(0)()
- }
-
- def foo(f: Any): Any => Any
-}