summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-17 19:44:24 +0000
committerPaul Phillips <paulp@improving.org>2010-04-17 19:44:24 +0000
commit0ffb0708fa5b154f53e35973d99239a94af755ca (patch)
treecf60d981b2678cd0e950128723d9c7b1c11262d2 /test/files
parentff714a46212b8280918243a1a7f9b54f2f045880 (diff)
downloadscala-0ffb0708fa5b154f53e35973d99239a94af755ca.tar.gz
scala-0ffb0708fa5b154f53e35973d99239a94af755ca.tar.bz2
scala-0ffb0708fa5b154f53e35973d99239a94af755ca.zip
Fix and test case for forwarder duplicate bug.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/bug3004.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/bug3004.scala b/test/files/run/bug3004.scala
new file mode 100644
index 0000000000..a1e9c6c72f
--- /dev/null
+++ b/test/files/run/bug3004.scala
@@ -0,0 +1,14 @@
+object MyClass {
+ val duplicate: Int = 10
+}
+
+class MyClass {
+ private val duplicate = MyClass.duplicate
+}
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val x = new MyClass
+ ()
+ }
+}