diff options
author | buraq <buraq@epfl.ch> | 2005-02-18 18:33:06 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2005-02-18 18:33:06 +0000 |
commit | 4d7916df7537797af0ac42e1cd41c34589aff4f8 (patch) | |
tree | a9bf193a89e176c94c115f9d15046269d3807c52 /test/files/neg/negSeq.check | |
parent | 008f8f063c505e690314992ccdf00ecbd88691b1 (diff) | |
download | scala-4d7916df7537797af0ac42e1cd41c34589aff4f8.tar.gz scala-4d7916df7537797af0ac42e1cd41c34589aff4f8.tar.bz2 scala-4d7916df7537797af0ac42e1cd41c34589aff4f8.zip |
neg file for sequence convention in pattern mat...
neg file for sequence convention in pattern matching
Diffstat (limited to 'test/files/neg/negSeq.check')
-rw-r--r-- | test/files/neg/negSeq.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/negSeq.check b/test/files/neg/negSeq.check new file mode 100644 index 0000000000..aefb0a5fdb --- /dev/null +++ b/test/files/neg/negSeq.check @@ -0,0 +1,4 @@ +negSeq.scala:6: expected pattern type scala.Seq[scala.Int] does not conform to sequence trait List + case List(1,2,3) => true // type error: type Seq will not work + ^ +one error found |