aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/go/select.go
blob: e3610f8f119eff6a5abffa869736fab0a4b85062 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// issue #4248
package main

import (
	"context"
	"fmt"
)

func test(ch byte) {
	ctx := context.TODO()
	select {
	case <-ctx.Done():
		fmt.Println("indentation")
	default:
	}
}