diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-04-21 15:06:45 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-04-21 15:06:45 -0700 |
commit | d484c17dbc47559dad8a7ae544d14a285cdfb8b2 (patch) | |
tree | e086b72d212c478a615816f20de96ec2a2bc1806 /test/files/neg/t7330.scala | |
parent | e8b37c79ca0535da56f852d922c1f88c3fd0e005 (diff) | |
parent | e7aadd00392a512ddcf53396d489f0f17bfac231 (diff) | |
download | scala-d484c17dbc47559dad8a7ae544d14a285cdfb8b2.tar.gz scala-d484c17dbc47559dad8a7ae544d14a285cdfb8b2.tar.bz2 scala-d484c17dbc47559dad8a7ae544d14a285cdfb8b2.zip |
Merge pull request #2358 from adriaanm/ticket-7330
SI-7330 better error when pattern's not a value
Diffstat (limited to 'test/files/neg/t7330.scala')
-rw-r--r-- | test/files/neg/t7330.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t7330.scala b/test/files/neg/t7330.scala new file mode 100644 index 0000000000..13a943a02b --- /dev/null +++ b/test/files/neg/t7330.scala @@ -0,0 +1,5 @@ +class Y[T] +class Test { + // TypeTree is not a valid tree for a pattern + 0 match { case Y[_] => } +}
\ No newline at end of file |