summaryrefslogtreecommitdiff
path: root/test/files/run/t4729.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-29 18:07:09 -0700
committerPaul Phillips <paulp@improving.org>2012-09-29 18:36:30 -0700
commit32e70a01da1fda7bdc91d7301ee3b8707fd2bcd4 (patch)
tree68b610a5cedca13014acdfb1bde79085349f18a9 /test/files/run/t4729.check
parent75a075b507b1c3f4463ab0eb42fecde66978e903 (diff)
downloadscala-32e70a01da1fda7bdc91d7301ee3b8707fd2bcd4.tar.gz
scala-32e70a01da1fda7bdc91d7301ee3b8707fd2bcd4.tar.bz2
scala-32e70a01da1fda7bdc91d7301ee3b8707fd2bcd4.zip
Fix for SI-4729, overriding java varargs in scala.
This was a bad interaction between anonymous subclasses and bridge methods. new Foo { override def bar = 5 } Scala figures it can mark "bar" private since hey, what's the difference. The problem is that if it was overriding a java-defined varargs method in scala, the bridge method logic says "Oh, it's private? Then you don't need a varargs bridge." Hey scalac, you're the one that made me private! You made me like this! You!
Diffstat (limited to 'test/files/run/t4729.check')
-rw-r--r--test/files/run/t4729.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/run/t4729.check b/test/files/run/t4729.check
new file mode 100644
index 0000000000..9a2aa56d99
--- /dev/null
+++ b/test/files/run/t4729.check
@@ -0,0 +1,4 @@
+WrappedArray(1, 2)
+WrappedArray(1, 2)
+WrappedArray(1, 2)
+WrappedArray(1, 2)