title: MisplacedFallthrough layout: article

MisplacedFallthrough occurs when a fallthrough statement is not within an
expression switch.

Example:
 func typename(i interface{}) string {
 	switch i.(type) {
 	case int64:
 		fallthrough
 	case int:
 		return "int"
 	}
 	return "unsupported"
 }