summaryrefslogtreecommitdiff
path: root/test/files/neg/bug412.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-09-04 16:33:51 +0000
committerMartin Odersky <odersky@gmail.com>2008-09-04 16:33:51 +0000
commit3e0cd7e7488477e60eb8d12ffeea1b3dc02433a5 (patch)
tree39e044e9c789277e68c89a72533088dc4190e8d7 /test/files/neg/bug412.check
parent743edeefd44939ada6e81c5936cc04f7c6601931 (diff)
downloadscala-3e0cd7e7488477e60eb8d12ffeea1b3dc02433a5.tar.gz
scala-3e0cd7e7488477e60eb8d12ffeea1b3dc02433a5.tar.bz2
scala-3e0cd7e7488477e60eb8d12ffeea1b3dc02433a5.zip
now checking for volatile types.
Diffstat (limited to 'test/files/neg/bug412.check')
-rw-r--r--test/files/neg/bug412.check9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/files/neg/bug412.check b/test/files/neg/bug412.check
index e275c5d271..f25ad6fa7e 100644
--- a/test/files/neg/bug412.check
+++ b/test/files/neg/bug412.check
@@ -1,6 +1,5 @@
-bug412.scala:9: error: type mismatch;
- found : Null(null)
- required: A.this.CX with A.this.C2
- val c: CX with C2 = null;
- ^
+bug412.scala:11: error: stable identifier required, but A.this.c found.
+ Note that value c is not stable because its type, A.this.CX with A.this.C2, is volatile.
+ def castA(x: c.T): T2 = x;
+ ^
one error found