Skip to content

Commit 71d2095

Browse files
committed
test: annotations before an array's bracket
1 parent ef003b2 commit 71d2095

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/corpus/expressions.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,3 +1951,28 @@ void foo(int @Foo ... x) {
19511951
(variable_declarator
19521952
(identifier))))
19531953
(block)))
1954+
1955+
================================================================================
1956+
Annotations before an array's bracket
1957+
================================================================================
1958+
1959+
void foo(int @Foo @Bar [] x) {
1960+
}
1961+
1962+
---
1963+
1964+
(program
1965+
(method_declaration
1966+
(void_type)
1967+
(identifier)
1968+
(formal_parameters
1969+
(formal_parameter
1970+
(array_type
1971+
(integral_type)
1972+
(dimensions
1973+
(marker_annotation
1974+
(identifier))
1975+
(marker_annotation
1976+
(identifier))))
1977+
(identifier)))
1978+
(block)))

0 commit comments

Comments
 (0)