summaryrefslogtreecommitdiff
path: root/test/files/neg/delambdafy_t6260_method.check
diff options
context:
space:
mode:
authorJames Iry <james.iry@typesafe.com>2013-08-28 20:51:31 -0700
committerJames Iry <james.iry@typesafe.com>2013-11-06 15:25:55 -0800
commit8d4a5bab2666c7006f31645b59cf063f07a8a12d (patch)
tree368194b114a0ee815fce5b8c62a0a7711dd79afb /test/files/neg/delambdafy_t6260_method.check
parent13ea5909ea25e4bad184e9e4581d94230dc11d9f (diff)
downloadscala-8d4a5bab2666c7006f31645b59cf063f07a8a12d.tar.gz
scala-8d4a5bab2666c7006f31645b59cf063f07a8a12d.tar.bz2
scala-8d4a5bab2666c7006f31645b59cf063f07a8a12d.zip
Create test variants where delambdafication alters signatures.
This commit includes several tests where there's a variation in signatures between inline delambdafication and method based delambdafication.
Diffstat (limited to 'test/files/neg/delambdafy_t6260_method.check')
-rw-r--r--test/files/neg/delambdafy_t6260_method.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/delambdafy_t6260_method.check b/test/files/neg/delambdafy_t6260_method.check
new file mode 100644
index 0000000000..f5cd6947d1
--- /dev/null
+++ b/test/files/neg/delambdafy_t6260_method.check
@@ -0,0 +1,13 @@
+delambdafy_t6260_method.scala:3: error: bridge generated for member method apply: (bx: Object)Object in class map$extension1
+which overrides method apply: (v1: Object)Object in trait Function1
+clashes with definition of the member itself;
+both have erased type (bx: Object)Object
+ ((bx: Box[X]) => new Box(f(bx.x)))(this)
+ ^
+delambdafy_t6260_method.scala:8: error: bridge generated for member method apply: (bx: Object)Object in class map21
+which overrides method apply: (v1: Object)Object in trait Function1
+clashes with definition of the member itself;
+both have erased type (bx: Object)Object
+ ((bx: Box[X]) => new Box(f(bx.x)))(self)
+ ^
+two errors found