From 0ffb0708fa5b154f53e35973d99239a94af755ca Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 17 Apr 2010 19:44:24 +0000 Subject: Fix and test case for forwarder duplicate bug. --- test/files/run/bug3004.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/files/run/bug3004.scala (limited to 'test/files/run') 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 + () + } +} -- cgit v1.2.3