diff options
Diffstat (limited to 'test/files/neg/patmat-classtag-compound.check')
-rw-r--r-- | test/files/neg/patmat-classtag-compound.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/patmat-classtag-compound.check b/test/files/neg/patmat-classtag-compound.check new file mode 100644 index 0000000000..8a54c935bd --- /dev/null +++ b/test/files/neg/patmat-classtag-compound.check @@ -0,0 +1,6 @@ +patmat-classtag-compound.scala:12: warning: abstract type pattern A is unchecked since it is eliminated by erasure + case b: A with Bar => true + ^ +error: No warnings can be incurred under -Xfatal-warnings. +one warning found +one error found |