From 8e9873f550110df8a028c77343154daf79a324df Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 16 Jan 2012 16:17:29 -0800 Subject: Improved a cyclic reference error message. "illegal cyclic reference involving value " not so useful. --- test/files/neg/cyclics-import.check | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/files/neg/cyclics-import.check (limited to 'test/files/neg/cyclics-import.check') diff --git a/test/files/neg/cyclics-import.check b/test/files/neg/cyclics-import.check new file mode 100644 index 0000000000..ef355fab0a --- /dev/null +++ b/test/files/neg/cyclics-import.check @@ -0,0 +1,15 @@ +cyclics-import.scala:1: 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 User.UserStatus._ + ^ +cyclics-import.scala:12: error: not found: type Value + type UserStatus = Value + ^ +cyclics-import.scala:14: error: not found: value Value + val Active = Value("1") + ^ +cyclics-import.scala:15: error: not found: value Value + val Disabled = Value("2") + ^ +four errors found -- cgit v1.2.3