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.
13 func (t T) String() string { return fmt.Sprintf("T%d", int(t)) }
16 A T = 1 << (1 << iota)
24 s := fmt.Sprintf("%v %v %v %v %v", A, B, C, D, E)
25 if s != "T2 T4 T16 T256 T65536" {
26 println("type info didn't propagate in const: got", s)