blob: 7f4786b52bf0c6bcf1b9d28d291d04d8b0cf3a18 [file] [log] [blame]
Russ Cox2b1c9b42012-02-16 23:49:30 -05001// errorcheck
Ian Lance Taylorf305d042009-10-29 15:41:02 -07002
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8func main() {
9 var v interface{} = 0;
Luuk van Dijkaac144b2011-11-04 17:03:50 +010010 switch v.(type) {
Ian Lance Taylorf305d042009-10-29 15:41:02 -070011 case int:
12 fallthrough; // ERROR "fallthrough"
13 default:
14 panic("fell through");
15 }
16}