summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-08-14 16:40:46 +0000
committerMartin Odersky <odersky@gmail.com>2006-08-14 16:40:46 +0000
commiteb79135b976114e75526a0d5b37401f110d47136 (patch)
treef5ff36ebc13de39c66ea909b0bc59accb50819a4 /test
parentc840d9f58c3d3dd9dbb5581df86985d6600fa09a (diff)
downloadscala-eb79135b976114e75526a0d5b37401f110d47136.tar.gz
scala-eb79135b976114e75526a0d5b37401f110d47136.tar.bz2
scala-eb79135b976114e75526a0d5b37401f110d47136.zip
Fixed bug 697
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/bug700.check4
-rw-r--r--test/files/neg/bug700.scala (renamed from test/files/pos/bug700.scala)0
-rw-r--r--test/files/pos/bug202.scala8
-rw-r--r--test/files/pos/bug697.scala3
-rw-r--r--test/files/pos/bug698.scala12
5 files changed, 19 insertions, 8 deletions
diff --git a/test/files/neg/bug700.check b/test/files/neg/bug700.check
new file mode 100644
index 0000000000..fb3fbb5e1b
--- /dev/null
+++ b/test/files/neg/bug700.check
@@ -0,0 +1,4 @@
+bug700.scala:6 error: method foobar in trait Bar is accessed from super. It may not be abstract unless it is overridden by a member declared `abstract' and `override'
+ def foobar: unit = super.foobar
+ ^
+one error found
diff --git a/test/files/pos/bug700.scala b/test/files/neg/bug700.scala
index 7477bb54f6..7477bb54f6 100644
--- a/test/files/pos/bug700.scala
+++ b/test/files/neg/bug700.scala
diff --git a/test/files/pos/bug202.scala b/test/files/pos/bug202.scala
deleted file mode 100644
index 087e1ff5d2..0000000000
--- a/test/files/pos/bug202.scala
+++ /dev/null
@@ -1,8 +0,0 @@
-trait C {
- type T;
- def f(x: T): unit;
-}
-
-trait D extends C {
- def f(x: T): unit = super.f(x);
-}
diff --git a/test/files/pos/bug697.scala b/test/files/pos/bug697.scala
new file mode 100644
index 0000000000..6caea418d5
--- /dev/null
+++ b/test/files/pos/bug697.scala
@@ -0,0 +1,3 @@
+object test {
+ val x = 10 == 20 == 30 < 10;
+}
diff --git a/test/files/pos/bug698.scala b/test/files/pos/bug698.scala
new file mode 100644
index 0000000000..a70acae213
--- /dev/null
+++ b/test/files/pos/bug698.scala
@@ -0,0 +1,12 @@
+abstract class Foo
+{
+ val x : Bar
+}
+
+abstract class Bar
+
+object Test
+ extends Foo with Application
+{
+ object x extends Bar
+}