diff options
author | Martin Odersky <odersky@gmail.com> | 2010-01-13 16:36:29 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-01-13 16:36:29 +0000 |
commit | 020b930ec950bc50ec9817f704b6fe30f2b8006d (patch) | |
tree | 8f305e9c288995dbf8ac2ad3aaae7388e87c8e92 /test/files | |
parent | fa0cdc7b3f33449c8cc253ec45b281e9c4cb28b2 (diff) | |
download | scala-020b930ec950bc50ec9817f704b6fe30f2b8006d.tar.gz scala-020b930ec950bc50ec9817f704b6fe30f2b8006d.tar.bz2 scala-020b930ec950bc50ec9817f704b6fe30f2b8006d.zip |
new tests. no review.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t2870.check | 7 | ||||
-rwxr-xr-x | test/files/neg/t2870.scala | 9 | ||||
-rw-r--r-- | test/files/pos/t2867.scala | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/t2870.check b/test/files/neg/t2870.check new file mode 100644 index 0000000000..6577577d3f --- /dev/null +++ b/test/files/neg/t2870.check @@ -0,0 +1,7 @@ +t2870.scala:1: error: not found: type Jar +class Jars(jar: Jar) + ^ +t2870.scala:6: error: illegal cyclic reference involving value <import> + val scala = fromClasspathString(javaClassPath) + ^ +two errors found diff --git a/test/files/neg/t2870.scala b/test/files/neg/t2870.scala new file mode 100755 index 0000000000..4de19242e3 --- /dev/null +++ b/test/files/neg/t2870.scala @@ -0,0 +1,9 @@ +class Jars(jar: Jar) + +object Jars { + import scala.util.Properties.javaClassPath + + val scala = fromClasspathString(javaClassPath) + + def fromClasspathString(s: String): Jars = null +} diff --git a/test/files/pos/t2867.scala b/test/files/pos/t2867.scala new file mode 100644 index 0000000000..0434a380b9 --- /dev/null +++ b/test/files/pos/t2867.scala @@ -0,0 +1 @@ +case class A(l: List[_]*) |