diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-16 16:17:29 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-16 16:52:22 -0800 |
commit | 8e9873f550110df8a028c77343154daf79a324df (patch) | |
tree | 41bcadcc8730274aed5c52f3a41c3bc866339cdd /test/files/neg/cyclics-import.scala | |
parent | 484af96c6d4a8684a4a1927693fd2485dd64e9ce (diff) | |
download | scala-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/cyclics-import.scala')
-rw-r--r-- | test/files/neg/cyclics-import.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/cyclics-import.scala b/test/files/neg/cyclics-import.scala new file mode 100644 index 0000000000..7b510b58e2 --- /dev/null +++ b/test/files/neg/cyclics-import.scala @@ -0,0 +1,17 @@ +import User.UserStatus._ + +class User { + var id: Int = 0 + var email: String = null + var password: String = null + var userStatus: UserStatus = null +} + +object User { + object UserStatus extends Enumeration { + type UserStatus = Value + + val Active = Value("1") + val Disabled = Value("2") + } +} |