summaryrefslogtreecommitdiff
path: root/test/files/neg/quasiquotes-syntax-error-position.check
blob: b12a7d13d653ed579233ef6dcb05421fa6e6612d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
quasiquotes-syntax-error-position.scala:5: error: '=' expected but identifier found.
  q"def $a f"
           ^
quasiquotes-syntax-error-position.scala:6: error: illegal start of simple expression
  q"$a("
       ^
quasiquotes-syntax-error-position.scala:7: error: '}' expected but end of quote found.
  q"class $t { def foo = $a"
                           ^
quasiquotes-syntax-error-position.scala:8: error: '.' expected but unquotee found.
  q"import $t $t"
              ^
quasiquotes-syntax-error-position.scala:9: error: '{' expected but end of quote found.
  q"package p"
             ^
quasiquotes-syntax-error-position.scala:10: error: ';' expected but '@' found.
  q"foo@$a"
       ^
quasiquotes-syntax-error-position.scala:11: error: case classes must have a parameter list; try 'case class A()' or 'case object A'
  q"case class A"
                ^
quasiquotes-syntax-error-position.scala:12: error: identifier expected but ']' found.
  tq"$t => $t $t]"
                ^
quasiquotes-syntax-error-position.scala:13: error: end of quote expected but 'case' found.
  cq"pattern => body ; case pattern2 =>"
                       ^
quasiquotes-syntax-error-position.scala:14: error: ')' expected but end of quote found.
  pq"$a(bar"
           ^
quasiquotes-syntax-error-position.scala:15: error: ':' expected but ')' found.
  q"def foo(x)"
             ^
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