summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/bug228.check2
-rw-r--r--test/files/pos/A.scala2
-rw-r--r--test/files/pos/MailBox.scala2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/bug228.check b/test/files/neg/bug228.check
index 0dc891bced..a099f9fa0e 100644
--- a/test/files/neg/bug228.check
+++ b/test/files/neg/bug228.check
@@ -1,4 +1,4 @@
-/home/odersky/scala/test/pos/bug228.scala:11: constructor java.lang.reflect.AccessibleObject cannot be accessed in Foo
+bug228.scala:11: constructor java.lang.reflect.AccessibleObject cannot be accessed in Foo
val o = new AccessibleObject;
^
one error found
diff --git a/test/files/pos/A.scala b/test/files/pos/A.scala
index 513c8bed45..fc50379d88 100644
--- a/test/files/pos/A.scala
+++ b/test/files/pos/A.scala
@@ -1,4 +1,4 @@
-trait A extends scala.Object {}
+trait A extends java.lang.Object {}
object test {
diff --git a/test/files/pos/MailBox.scala b/test/files/pos/MailBox.scala
index e081735911..9094b73399 100644
--- a/test/files/pos/MailBox.scala
+++ b/test/files/pos/MailBox.scala
@@ -8,7 +8,7 @@ class MailBox with Monitor {
var next: LinkedList[a] = null;
}
- def insert(l: LinkedList[a], x: a): LinkedList[a] {
+ def insert[a](l: LinkedList[a], x: a): LinkedList[a] = {
l.next = new LinkedList[a];
l.next.elem = x;
l.next.next = l.next;