summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/Y.check4
-rw-r--r--test/files/neg/Y.scala (renamed from test/files/pos/Y.scala)0
-rw-r--r--test/files/pos/bug295.scala2
3 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/Y.check b/test/files/neg/Y.check
new file mode 100644
index 0000000000..fca14d1c0b
--- /dev/null
+++ b/test/files/neg/Y.check
@@ -0,0 +1,4 @@
+/home/odersky/scala/test/files/neg/Y.scala:3: `match' needs to be applied fully
+ def f(x: Object): java.lang.Object /* !!! Object */ = x.match;
+ ^
+one error found
diff --git a/test/files/pos/Y.scala b/test/files/neg/Y.scala
index fd235e735d..fd235e735d 100644
--- a/test/files/pos/Y.scala
+++ b/test/files/neg/Y.scala
diff --git a/test/files/pos/bug295.scala b/test/files/pos/bug295.scala
new file mode 100644
index 0000000000..22c7beff4d
--- /dev/null
+++ b/test/files/pos/bug295.scala
@@ -0,0 +1,2 @@
+object Test extends java.rmi.server.UnicastRemoteObject {
+}