summaryrefslogtreecommitdiff
path: root/test/files/neg/t2870.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-01-16 16:17:29 -0800
committerPaul Phillips <paulp@improving.org>2012-01-16 16:52:22 -0800
commit8e9873f550110df8a028c77343154daf79a324df (patch)
tree41bcadcc8730274aed5c52f3a41c3bc866339cdd /test/files/neg/t2870.check
parent484af96c6d4a8684a4a1927693fd2485dd64e9ce (diff)
downloadscala-8e9873f550110df8a028c77343154daf79a324df.tar.gz
scala-8e9873f550110df8a028c77343154daf79a324df.tar.bz2
scala-8e9873f550110df8a028c77343154daf79a324df.zip
Improved a cyclic reference error message.
"illegal cyclic reference involving value <import>" not so useful.
Diffstat (limited to 'test/files/neg/t2870.check')
-rw-r--r--test/files/neg/t2870.check8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/files/neg/t2870.check b/test/files/neg/t2870.check
index 72bc0d98a1..ab962d48c8 100644
--- a/test/files/neg/t2870.check
+++ b/test/files/neg/t2870.check
@@ -1,7 +1,9 @@
t2870.scala:1: error: not found: type Jar (similar: Jars)
class Jars(jar: Jar)
^
-t2870.scala:6: error: illegal cyclic reference involving value <import>
- val scala = fromClasspathString(javaClassPath)
- ^
+t2870.scala:4: error: encountered unrecoverable cycle resolving import.
+Note: this is often due in part to a class depending on a definition nested within its companion.
+If applicable, you may wish to try moving some members into another object.
+ import scala.util.Properties.javaClassPath
+ ^
two errors found