aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/go')
-rw-r--r--tests/indent/go/issue-3288.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/indent/go/issue-3288.go b/tests/indent/go/issue-3288.go
index a59208184..330dd67c5 100644
--- a/tests/indent/go/issue-3288.go
+++ b/tests/indent/go/issue-3288.go
@@ -7,8 +7,16 @@ func correct(word string) {
select {
} // <---
+}
- arr := []struct {
+func test() {
+ cases := []struct {
+ first, second string
+ } {
+ {"Hello", "World"},
+ }
- } // <---
+ for range cases {
+ println("random stuff")
+ }
}