summaryrefslogtreecommitdiff
path: root/test/files/neg/t856.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t856.scala')
-rw-r--r--test/files/neg/t856.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t856.scala b/test/files/neg/t856.scala
new file mode 100644
index 0000000000..fea216bfad
--- /dev/null
+++ b/test/files/neg/t856.scala
@@ -0,0 +1,11 @@
+trait Complex extends Product2[Double,Double]
+
+class ComplexRect(val _1:Double, _2:Double) extends Complex {
+ override def toString = "ComplexRect("+_1+","+_2+")"
+}
+
+object Test {
+ def main(args:Array[String]) = {
+ new ComplexRect(1,1)._2
+ }
+}