summaryrefslogtreecommitdiff
path: root/test/files/run/trait-static-forwarder.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-05-19 16:23:23 +1000
committerLukas Rytz <lukas.rytz@typesafe.com>2016-05-19 08:23:23 +0200
commit41c9a17e4f211fc24a931949a0819a0474cc004a (patch)
tree314788b6edb0286f3effb982204ba918a938d6c2 /test/files/run/trait-static-forwarder.check
parent07a8b197b93a6de54c890a7ee37254decc568880 (diff)
downloadscala-41c9a17e4f211fc24a931949a0819a0474cc004a.tar.gz
scala-41c9a17e4f211fc24a931949a0819a0474cc004a.tar.bz2
scala-41c9a17e4f211fc24a931949a0819a0474cc004a.zip
Generate static forwarders for object members in companion interface (#5131)
We used to disable generation of static forwarders when a object had a trait as a companion, as one could not add methods with bodies to an interface in JVM 6. The JVM lifted this restriction to support default methods in interfaces, so we can lift the restriction on static forwarders, too. Fixes https://github.com/scala/scala-dev/issues/59
Diffstat (limited to 'test/files/run/trait-static-forwarder.check')
-rw-r--r--test/files/run/trait-static-forwarder.check1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/run/trait-static-forwarder.check b/test/files/run/trait-static-forwarder.check
new file mode 100644
index 0000000000..d81cc0710e
--- /dev/null
+++ b/test/files/run/trait-static-forwarder.check
@@ -0,0 +1 @@
+42