summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-07-11 23:44:23 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-07-11 23:44:23 -0700
commit897116ffb0e317a60a94b20f502f27483a98bad0 (patch)
treef48f53ef4974062826438633b132806c39683afc /test/files/pos
parenta5691488311d80d4a07626f4c09289295368ef0c (diff)
parentd852c9b8b4f261bff3bd32127f70378225bb6831 (diff)
downloadscala-897116ffb0e317a60a94b20f502f27483a98bad0.tar.gz
scala-897116ffb0e317a60a94b20f502f27483a98bad0.tar.bz2
scala-897116ffb0e317a60a94b20f502f27483a98bad0.zip
Merge pull request #874 from adriaanm/ticket-6022
SI-6022 model type-test-implication better
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t6022.flags1
-rw-r--r--test/files/pos/t6022.scala7
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t6022.flags b/test/files/pos/t6022.flags
new file mode 100644
index 0000000000..e8fb65d50c
--- /dev/null
+++ b/test/files/pos/t6022.flags
@@ -0,0 +1 @@
+-Xfatal-warnings \ No newline at end of file
diff --git a/test/files/pos/t6022.scala b/test/files/pos/t6022.scala
new file mode 100644
index 0000000000..522c3352c7
--- /dev/null
+++ b/test/files/pos/t6022.scala
@@ -0,0 +1,7 @@
+class Test {
+ (null: Any) match {
+ case x: AnyRef if false =>
+ case list: Option[_] =>
+ case product: Product => // change Product to String and it's all good
+ }
+} \ No newline at end of file