summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-12-02 10:22:25 +0000
committerpaltherr <paltherr@epfl.ch>2004-12-02 10:22:25 +0000
commita88516e6a90bdaf956fe5d0da225fc80092c9566 (patch)
treea87c35450094f47e5a12e7f4c006677e811cc6c4 /test/files
parent4e79c400f455e88e079fb9da48c5c7658b0defa2 (diff)
downloadscala-a88516e6a90bdaf956fe5d0da225fc80092c9566.tar.gz
scala-a88516e6a90bdaf956fe5d0da225fc80092c9566.tar.bz2
scala-a88516e6a90bdaf956fe5d0da225fc80092c9566.zip
- Added a test to test references to generated ...
- Added a test to test references to generated classes
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/tests.check11
-rw-r--r--test/files/neg/tests.scala9
2 files changed, 19 insertions, 1 deletions
diff --git a/test/files/neg/tests.check b/test/files/neg/tests.check
index 7f1427cf6a..c179e8c4d0 100644
--- a/test/files/neg/tests.check
+++ b/test/files/neg/tests.check
@@ -13,4 +13,13 @@ tests.scala:37: package test0 is not a value
tests.scala:38: package bar is not a value
{System.out.print(22); test0.bar}.System.out.println();
^
-5 errors found
+tests.scala:51: type Tuple2$class is not a member of scala
+ def a: Any = new scala.Tuple2$class(1,1);
+ ^
+tests.scala:52: type Predef$$anon$7 is not a member of scala
+ def b: scala.Predef$$anon$7;
+ ^
+tests.scala:53: type List$Class is not a member of scala
+ def c: scala.List$Class;
+ ^
+8 errors found
diff --git a/test/files/neg/tests.scala b/test/files/neg/tests.scala
index 04a72fa222..9b70a0ee19 100644
--- a/test/files/neg/tests.scala
+++ b/test/files/neg/tests.scala
@@ -45,3 +45,12 @@ object Test0Test {
}
//############################################################################
+// Test 1 - References to Generated Classes
+
+trait Test1 {
+ def a: Any = new scala.Tuple2$class(1,1);
+ def b: scala.Predef$$anon$7;
+ def c: scala.List$Class;
+}
+
+//############################################################################