summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-30 21:17:56 +0000
committerPaul Phillips <paulp@improving.org>2010-04-30 21:17:56 +0000
commitf662b62e2b079968b46e1474f73117fdf7684271 (patch)
tree249ba8c79cd4a5f8e133e444e92f3d03a5708afc /test
parent4758f2a87c2c069e9021bd23de4dd304d3623af7 (diff)
downloadscala-f662b62e2b079968b46e1474f73117fdf7684271.tar.gz
scala-f662b62e2b079968b46e1474f73117fdf7684271.tar.bz2
scala-f662b62e2b079968b46e1474f73117fdf7684271.zip
Accumulate missing abstract member errors so th...
Accumulate missing abstract member errors so they can all be printed instead of only the first. Closes #2213, no review.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/bug2213.check15
-rw-r--r--test/files/neg/bug2213.scala11
-rw-r--r--test/files/neg/bug856.check4
3 files changed, 29 insertions, 1 deletions
diff --git a/test/files/neg/bug2213.check b/test/files/neg/bug2213.check
new file mode 100644
index 0000000000..b24f7dc554
--- /dev/null
+++ b/test/files/neg/bug2213.check
@@ -0,0 +1,15 @@
+bug2213.scala:9: error: class C needs to be abstract, since:
+value y in class A of type Int is not defined
+value x in class A of type Int is not defined
+method g in class A of type => Int is not defined
+method f in class A of type => Int is not defined
+class C extends A {}
+ ^
+bug2213.scala:11: error: object creation impossible, since:
+value y in class A of type Int is not defined
+value x in class A of type Int is not defined
+method g in class A of type => Int is not defined
+method f in class A of type => Int is not defined
+object Q extends A { }
+ ^
+two errors found
diff --git a/test/files/neg/bug2213.scala b/test/files/neg/bug2213.scala
new file mode 100644
index 0000000000..af1df3ccfe
--- /dev/null
+++ b/test/files/neg/bug2213.scala
@@ -0,0 +1,11 @@
+abstract class A {
+ def f: Int
+ def g: Int
+
+ val x: Int
+ val y: Int
+}
+
+class C extends A {}
+
+object Q extends A { } \ No newline at end of file
diff --git a/test/files/neg/bug856.check b/test/files/neg/bug856.check
index e1d0801c5f..168855d6a2 100644
--- a/test/files/neg/bug856.check
+++ b/test/files/neg/bug856.check
@@ -1,4 +1,6 @@
-bug856.scala:3: error: class ComplexRect needs to be abstract, since method _2 in trait Product2 of type => Double is not defined
+bug856.scala:3: error: class ComplexRect needs to be abstract, since:
+method _2 in trait Product2 of type => Double is not defined
+method canEqual in trait Equals of type (that: Any)Boolean is not defined
class ComplexRect(val _1:Double, _2:Double) extends Complex {
^
one error found