aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6355.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t6355.scala')
-rw-r--r--tests/pending/run/t6355.scala17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/pending/run/t6355.scala b/tests/pending/run/t6355.scala
deleted file mode 100644
index f1921391a..000000000
--- a/tests/pending/run/t6355.scala
+++ /dev/null
@@ -1,17 +0,0 @@
-import scala.language.dynamics
-
-class A extends Dynamic {
- def applyDynamic(method: String): B = new B(method)
-}
-class B(method: String) {
- def apply(x: Int) = s"$method(x: Int) called with x = $x"
- def apply(x: String) = s"""$method(x: String) called with x = "$x""""
-}
-
-object Test {
- def main(args: Array[String]): Unit = {
- val x = new A
- println(x.bippy(42))
- println(x.bippy("42"))
- }
-}