summaryrefslogtreecommitdiff
path: root/test/pending/run/t3609.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/t3609.scala')
-rw-r--r--test/pending/run/t3609.scala28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/pending/run/t3609.scala b/test/pending/run/t3609.scala
deleted file mode 100644
index eb25afd667..0000000000
--- a/test/pending/run/t3609.scala
+++ /dev/null
@@ -1,28 +0,0 @@
-object Test extends Application {
- class A
- class B extends A
- def foo(x: A, y: B) = print(1)
- val foo = new {
- // def apply(x: B, y: A) = print(3)
- def apply = (x: B, z: B) => print(4)
- }
-
- foo(new B, new B)
-}
-
-// This code prints 1. If we remove comment, then it will print 4.
-// Moreover following code prints 3 (which is most strange thing):
-
-object Test2 extends Application {
- class A
- class B extends A
- def foo(x: A, y: B) = print(1)
- val foo = new {
- def apply(x: B, y: A) = print(3)
- def apply = new {
- def apply = (x: B, z: B) => print(4)
- }
- }
-
- foo(new B, new B)
-} \ No newline at end of file