aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/go')
-rw-r--r--tests/indent/go/switch.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/go/switch.go b/tests/indent/go/switch.go
index 8ccacd564..9b6e74db2 100644
--- a/tests/indent/go/switch.go
+++ b/tests/indent/go/switch.go
@@ -11,4 +11,10 @@ func test(ch byte) {
case 'l':
return
}
+
+ var i interface{}
+ switch i.(type) {
+ case int:
+ return
+ }
}