3 // Copyright 2010 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.
11 func foo(t interface{}, c chan int) {
12 switch v := t.(type) {
16 // bug was: internal compiler error: var without type, init: v