summaryrefslogtreecommitdiff
path: root/test/files/neg/t6680a.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/t6680a.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/t6680a.check')
-rw-r--r--test/files/neg/t6680a.check11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t6680a.check b/test/files/neg/t6680a.check
new file mode 100644
index 0000000000..03e4df10c1
--- /dev/null
+++ b/test/files/neg/t6680a.check
@@ -0,0 +1,11 @@
+t6680a.scala:10: error: type mismatch;
+ found : String("abc")
+ required: A
+ y.x = "abc"
+ ^
+t6680a.scala:17: error: type mismatch;
+ found : String("")
+ required: A
+ case class C[A](f:A=>A);def f(x:Any)=x match { case C(f)=>f("") };f(C[Int](x=>x))
+ ^
+two errors found