1 // Copyright 2018 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 // Check that constants defined as a conversion are accepted.
11 type Other int // Imagine this is in another package.
37 func ck(c Conv, str string) {
38 if fmt.Sprint(c) != str {
39 panic("conv.go: " + str)