1 // $G $D/$F.go && $L $F.$A && ./$A.out
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.
9 type T struct {a, b int};
11 func println(x, y int) { }
13 func f(x interface{}) interface{} {
14 type T struct {a, b int};
37 func shouldPanic(f func()) {
40 panic("function should panic")
52 but it should crash: The type assertion on line 18 should fail
53 for the 2nd call to f with outer_T.