diff options
Diffstat (limited to 'src/go/parser/short_test.go')
-rw-r--r-- | src/go/parser/short_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/go/parser/short_test.go b/src/go/parser/short_test.go index f861086dd..05e44de28 100644 --- a/src/go/parser/short_test.go +++ b/src/go/parser/short_test.go @@ -39,6 +39,7 @@ var valids = []string{ `package p; func ((*T),) m() {}`, `package p; func (*(T),) m() {}`, `package p; func _(x []int) { for range x {} }`, + `package p; func _() { if [T{}.n]int{} {} }`, } func TestValid(t *testing.T) { |