summaryrefslogtreecommitdiff
path: root/test/files/pos/t9178.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t9178.scala')
-rw-r--r--test/files/pos/t9178.scala13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/files/pos/t9178.scala b/test/files/pos/t9178.scala
deleted file mode 100644
index f2cf20a778..0000000000
--- a/test/files/pos/t9178.scala
+++ /dev/null
@@ -1,13 +0,0 @@
-// eta expansion to Function0 is problematic (as shown here).
-// Perhaps we should we deprecate it? See discussion in the comments of
-// on SI-9178.
-//
-// This test encodes the status quo: no deprecation.
-object Test {
- def foo(): () => String = () => ""
- val f: () => Any = foo
-
- def main(args: Array[String]): Unit = {
- println(f()) // <function0>
- }
-}