summaryrefslogtreecommitdiff
path: root/test/files/neg/t6680c.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-10-03 15:49:24 -0700
committerPaul Phillips <paulp@improving.org>2013-10-03 15:49:24 -0700
commit90a312669b37d6e3e3f08685953ded24759e6102 (patch)
treed3cb52921c989d91420819fe5452267cda489405 /test/files/neg/t6680c.check
parentb9284ac33345d9e654c44af74b5e1c92a37e2c6c (diff)
parent5708e9d73ba01c286d7155606b72caeab914face (diff)
downloadscala-90a312669b37d6e3e3f08685953ded24759e6102.tar.gz
scala-90a312669b37d6e3e3f08685953ded24759e6102.tar.bz2
scala-90a312669b37d6e3e3f08685953ded24759e6102.zip
Merge pull request #3005 from paulp/pr/7886
SI-7886 unsoundness in pattern matcher.
Diffstat (limited to 'test/files/neg/t6680c.check')
-rw-r--r--test/files/neg/t6680c.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t6680c.check b/test/files/neg/t6680c.check
new file mode 100644
index 0000000000..7a749de1f2
--- /dev/null
+++ b/test/files/neg/t6680c.check
@@ -0,0 +1,6 @@
+t6680c.scala:15: error: type mismatch;
+ found : String("a string!")
+ required: S
+ res match { case Unfold(s, f) => f("a string!") }
+ ^
+one error found