summaryrefslogtreecommitdiff
path: root/test/files/pos/t6537.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-10-20 18:02:00 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-10-20 18:02:00 -0700
commit6daf9c642578c0af178075f5cc10e2a19c35e12a (patch)
tree3fda2b0dc88d6ad0091e58bce92a51978d25d367 /test/files/pos/t6537.scala
parent117bb2ac30a00f56e168f804a1561de1369ee944 (diff)
parent6ff9db6362c0b19c72b3b0ca2721367a85e13189 (diff)
downloadscala-6daf9c642578c0af178075f5cc10e2a19c35e12a.tar.gz
scala-6daf9c642578c0af178075f5cc10e2a19c35e12a.tar.bz2
scala-6daf9c642578c0af178075f5cc10e2a19c35e12a.zip
Merge pull request #1509 from paulp/issue/6537
Fix for SI-6537, inaccurate unchecked warning.
Diffstat (limited to 'test/files/pos/t6537.scala')
-rw-r--r--test/files/pos/t6537.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t6537.scala b/test/files/pos/t6537.scala
new file mode 100644
index 0000000000..d0ca3ba435
--- /dev/null
+++ b/test/files/pos/t6537.scala
@@ -0,0 +1,16 @@
+package tester
+
+object PatMatWarning {
+
+ sealed trait X
+ sealed trait Y
+
+ def f(x: X) = x match {
+ case _: Y => false
+ case _ => true
+ }
+
+ class X1 extends X
+ class Y1 extends Y
+ class Z1 extends X with Y
+}