diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-17 12:36:14 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-17 12:36:14 +0000 |
commit | 4cb4ad76b213389b828ae9c1ab26c9d7a1c3a7c2 (patch) | |
tree | 26408ef80038d59cd9f713222edd659b30f88253 /test/files/neg/patmatexhaust.check | |
parent | 3949726f1f053c9850d71064ec6c16819248c4e8 (diff) | |
download | scala-4cb4ad76b213389b828ae9c1ab26c9d7a1c3a7c2.tar.gz scala-4cb4ad76b213389b828ae9c1ab26c9d7a1c3a7c2.tar.bz2 scala-4cb4ad76b213389b828ae9c1ab26c9d7a1c3a7c2.zip |
Fix and test cases for ticket #443.
flags on AnyVal from FINAL|SEALED to ABSTRACT|SEALED. This appears
correct and without ill effect, but if anyone spots new anyval oddness
you know where to look.
Diffstat (limited to 'test/files/neg/patmatexhaust.check')
-rw-r--r-- | test/files/neg/patmatexhaust.check | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/files/neg/patmatexhaust.check b/test/files/neg/patmatexhaust.check index 66b0f3c8ea..1c46b6c9e5 100644 --- a/test/files/neg/patmatexhaust.check +++ b/test/files/neg/patmatexhaust.check @@ -25,8 +25,13 @@ missing combination Gp def ma5(x:Deep) = x match { // Gp ^ -patmatexhaust.scala:70: error: unreachable code +patmatexhaust.scala:75: warning: match is not exhaustive! +missing combination B + + def ma9(x: B) = x match { + ^ +patmatexhaust.scala:92: error: unreachable code case 1 => ^ -5 warnings found +6 warnings found one error found |