summaryrefslogtreecommitdiff
path: root/test/files/neg/t5148.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-09-30 15:41:03 +0200
committerAdriaan Moors <adriaan@lightbend.com>2016-09-30 16:10:05 -0700
commit0e0614c866526d8922a34e3aab1afc64d7b4f01c (patch)
tree6cd286aa256ccfe4e58ae4a8f2e4c2e2e9e9c6de /test/files/neg/t5148.scala
parent759b0daaf448f08f3233ee5fdaa3bc29f0732dfc (diff)
downloadscala-0e0614c866526d8922a34e3aab1afc64d7b4f01c.tar.gz
scala-0e0614c866526d8922a34e3aab1afc64d7b4f01c.tar.bz2
scala-0e0614c866526d8922a34e3aab1afc64d7b4f01c.zip
Default -Xmixin-force-forwarders to true
Also eliminates the warning when a mixin forwarder cannot be implemented because the target method is a java-defined default method in an interface that is not a direct parent of the class. The test t5148 is moved to neg, as expected: It was moved to pos when disabling mixin forwarders in 33e7106. Same for the changed error message in t4749.
Diffstat (limited to 'test/files/neg/t5148.scala')
-rw-r--r--test/files/neg/t5148.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t5148.scala b/test/files/neg/t5148.scala
new file mode 100644
index 0000000000..fca64e57df
--- /dev/null
+++ b/test/files/neg/t5148.scala
@@ -0,0 +1,4 @@
+package scala.tools.nsc
+package interpreter
+
+class IMain extends Imports