summaryrefslogtreecommitdiff
path: root/test/prism/errors/command_calls_35.txt
blob: 45f569b117c6c52e6de62f29bcc97bbc490a8b05 (plain)
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
p(p a, x: b => value)
            ^~ unexpected '=>'; expected a `)` to close the arguments
                    ^ unexpected ')', expecting end-of-input
                    ^ unexpected ')', ignoring it

p(p a, x: => value)
          ^~ unexpected '=>'; expected a `)` to close the arguments
                  ^ unexpected ')', expecting end-of-input
                  ^ unexpected ')', ignoring it

p(p a, &block => value)
              ^~ unexpected '=>'; expected a `)` to close the arguments
                      ^ unexpected ')', expecting end-of-input
                      ^ unexpected ')', ignoring it

p(p a do end => value)
             ^~ unexpected '=>'; expected a `)` to close the arguments
                     ^ unexpected ')', expecting end-of-input
                     ^ unexpected ')', ignoring it

p(p a, *args => value)
             ^~ unexpected '=>'; expected a `)` to close the arguments
                     ^ unexpected ')', expecting end-of-input
                     ^ unexpected ')', ignoring it

p(p a, **kwargs => value)
                ^~ unexpected '=>'; expected a `)` to close the arguments
                        ^ unexpected ')', expecting end-of-input
                        ^ unexpected ')', ignoring it

p p 1, &block => 2, &block
              ^~ unexpected '=>', expecting end-of-input
              ^~ unexpected '=>', ignoring it
                  ^ unexpected ',', expecting end-of-input
                  ^ unexpected ',', ignoring it
                    ^ unexpected '&', ignoring it

p p p 1 => 2 => 3 => 4
                  ^~ unexpected '=>', expecting end-of-input
                  ^~ unexpected '=>', ignoring it

p[p a, x: b => value]
           ^ expected a matching `]`
                    ^ unexpected ']', expecting end-of-input
                    ^ unexpected ']', ignoring it