aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/go/issue-2369.go
blob: f512814e00962c4c73f2e02bcf9cbad2f14f8b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// https://github.com/nvim-treesitter/nvim-treesitter/issues/2369
package main

import "fmt"

func goodIndent(param string) {
	fmt.Println("typing o here works as expected")
}

func badIndent(
	param string, // this is the difference
) {
	fmt.Println("typing o here triggers bad indent")
	foo(bar,
		baz,
		call,
		stop,
		please)
}