diff options
Diffstat (limited to 'test/files/neg/bug412.check')
-rw-r--r-- | test/files/neg/bug412.check | 9 |
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 |