diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-08-08 18:55:45 +0200 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-08-14 11:45:47 +0200 |
commit | e1bef09d8afe58d00aa0620ee1fd5e7ff92fe470 (patch) | |
tree | eadd8288ddf464d02e65824cc4834fce968d4bd3 /test/files/scalacheck/quasiquotes/ErrorProps.scala | |
parent | b4598b4a7826b76cc6405b448b50d6c20f7a5732 (diff) | |
download | scala-e1bef09d8afe58d00aa0620ee1fd5e7ff92fe470.tar.gz scala-e1bef09d8afe58d00aa0620ee1fd5e7ff92fe470.tar.bz2 scala-e1bef09d8afe58d00aa0620ee1fd5e7ff92fe470.zip |
SI-6843 well-positioned syntax errors for quasiquotes
This is achieved in a following way:
1. Similarly to toolbox quasiquotes can go away with wrapping for
parsing purpose after introduction of `parseStats` and `parseRule`
entry points.
2. In case of syntax error quasiquote computes equivalent corresponding
position in the source code with the help of `corrrespondingPosition`
mapper which relies on position data collected into `posMap` during
code generation.
Diffstat (limited to 'test/files/scalacheck/quasiquotes/ErrorProps.scala')
-rw-r--r-- | test/files/scalacheck/quasiquotes/ErrorProps.scala | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/files/scalacheck/quasiquotes/ErrorProps.scala b/test/files/scalacheck/quasiquotes/ErrorProps.scala index 044a332a04..b9e69e0e88 100644 --- a/test/files/scalacheck/quasiquotes/ErrorProps.scala +++ b/test/files/scalacheck/quasiquotes/ErrorProps.scala @@ -188,12 +188,6 @@ object ErrorProps extends QuasiquoteProperties("errors") { val q"$m1 $m2 def foo" = EmptyTree """) - property("can't parse more than one casedef") = fails( - "Can't parse more than one casedef, consider generating a match tree instead", - """ - cq"1 => 2 case 3 => 5" - """) - // // Make sure a nice error is reported in this case // { import Flag._; val mods = NoMods; q"lazy $mods val x: Int" } }
\ No newline at end of file |