1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Enumeration with an offset.
6 // Also includes a duplicate.
19 AnotherOne = One // Duplicate; note that AnotherOne doesn't appear below.
27 ck(127, "Number(127)")
30 func ck(num Number, str string) {
31 if fmt.Sprint(num) != str {
32 panic("number.go: " + str)