diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-03-01 09:32:38 -0500 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-03-01 09:32:38 -0500 |
commit | cfac5e9e540434d5d1fc6decc2e6669995473c87 (patch) | |
tree | fbbdccc2c2a4d14c815bdfc954b89abdb47879f0 /test | |
parent | 6b63bb82ab66751a42fac496846384deb932fe00 (diff) | |
parent | 51b8e6c020d39393c471dcfee389c5f0f7510afd (diff) | |
download | scala-cfac5e9e540434d5d1fc6decc2e6669995473c87.tar.gz scala-cfac5e9e540434d5d1fc6decc2e6669995473c87.tar.bz2 scala-cfac5e9e540434d5d1fc6decc2e6669995473c87.zip |
Merge pull request #3593 from densh/si/8285
SI-8285 use correct kind of map for quasiquote positions
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/quasiquotes-syntax-error-position.check | 14 | ||||
-rw-r--r-- | test/files/neg/quasiquotes-syntax-error-position.scala | 5 |
2 files changed, 18 insertions, 1 deletions
diff --git a/test/files/neg/quasiquotes-syntax-error-position.check b/test/files/neg/quasiquotes-syntax-error-position.check index fd55bd25b5..9fd6ce0417 100644 --- a/test/files/neg/quasiquotes-syntax-error-position.check +++ b/test/files/neg/quasiquotes-syntax-error-position.check @@ -32,4 +32,16 @@ quasiquotes-syntax-error-position.scala:14: error: ')' expected but end of quote quasiquotes-syntax-error-position.scala:15: error: ':' expected but ')' found. q"def foo(x)" ^ -11 errors found +quasiquotes-syntax-error-position.scala:16: error: illegal start of simple expression + q"$a(])" + ^ +quasiquotes-syntax-error-position.scala:17: error: in XML literal: '>' expected instead of '$' + q"foo bar <xml$a>" + ^ +quasiquotes-syntax-error-position.scala:19: error: ';' expected but '<:' found. + q"val $x: $x <: $x" + ^ +quasiquotes-syntax-error-position.scala:20: error: '=' expected but '.' found. + q"def f ( $x ) . $x" + ^ +15 errors found diff --git a/test/files/neg/quasiquotes-syntax-error-position.scala b/test/files/neg/quasiquotes-syntax-error-position.scala index 7b1d66ba00..823fe9a551 100644 --- a/test/files/neg/quasiquotes-syntax-error-position.scala +++ b/test/files/neg/quasiquotes-syntax-error-position.scala @@ -13,4 +13,9 @@ object test extends App { cq"pattern => body ; case pattern2 =>" pq"$a(bar" q"def foo(x)" + q"$a(])" + q"foo bar <xml$a>" + val x = q"x" + q"val $x: $x <: $x" + q"def f ( $x ) . $x" } |