diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-08-31 13:44:54 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-09-21 14:00:09 +1000 |
commit | daa421189d9191f05b5006418580eb6c0e0b1ec7 (patch) | |
tree | 50ba9c340893db51303d16d0b2b41b0b366a407b /test/files/neg/t8989.check | |
parent | f1e553ecfbea25bcc7e13294f6104d599336f460 (diff) | |
download | scala-daa421189d9191f05b5006418580eb6c0e0b1ec7.tar.gz scala-daa421189d9191f05b5006418580eb6c0e0b1ec7.tar.bz2 scala-daa421189d9191f05b5006418580eb6c0e0b1ec7.zip |
SI-8989 Better error message for invalid extractor pattern
Diffstat (limited to 'test/files/neg/t8989.check')
-rw-r--r-- | test/files/neg/t8989.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t8989.check b/test/files/neg/t8989.check new file mode 100644 index 0000000000..4e89b862bd --- /dev/null +++ b/test/files/neg/t8989.check @@ -0,0 +1,4 @@ +t8989.scala:11: error: The result type of an unapply method must contain a member `get` to be used as an extractor pattern, no such member exists in A + val f = p match {case d(1) => true; case _ => false} + ^ +one error found |