From d1ce3db8ea608bd5b10171ce23b2867eddad427a Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 10 Aug 2022 23:01:57 +0200 Subject: indents(go): no indent at all composite_literal, indent at struct_type --- tests/indent/go/issue-3288.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tests') 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") + } } -- cgit v1.2.3-70-g09d2