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.
7 // Test typed integer constants.
15 func (t T) String() string { return fmt.Sprintf("T%d", int(t)) }
18 A T = 1 << (1 << iota)
26 s := fmt.Sprintf("%v %v %v %v %v", A, B, C, D, E)
27 if s != "T2 T4 T16 T256 T65536" {
28 println("type info didn't propagate in const: got", s)
32 y := float64(uint64(1)<<x) // used to fail to compile