summaryrefslogtreecommitdiff
path: root/test/prism/fixtures/whitequark/pattern_matching_explicit_array_match.txt
blob: 61e518d0fbacc682013a06bf3f1cb58291ca4b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
case foo; in [*, x] then true; end

case foo; in [*x, y] then true; end

case foo; in [x, *, y] then true; end

case foo; in [x, *y, z] then true; end

case foo; in [x, y, *] then true; end

case foo; in [x, y, *z] then true; end

case foo; in [x, y,] then true; end

case foo; in [x, y] then true; end

case foo; in [x,] then nil; end

case foo; in [x] then nil; end