aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/go/switch.go
blob: 9b6e74db25805b964978e58f87df235f0e337b88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// issue #2166
package main

import (
	"fmt"
)

func test(ch byte) {
	fmt.Println("hey!")
	switch ch {
	case 'l':
		return
	}

	var i interface{}
	switch i.(type) {
	case int:
		return
	}
}