From a88516e6a90bdaf956fe5d0da225fc80092c9566 Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 2 Dec 2004 10:22:25 +0000 Subject: - Added a test to test references to generated ... - Added a test to test references to generated classes --- test/files/neg/tests.check | 11 ++++++++++- test/files/neg/tests.scala | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'test/files') 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; +} + +//############################################################################ -- cgit v1.2.3