3 // Copyright 2011 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.
16 func (c cplx64) Foo() {}
17 func (c cplx128) Foo() {}
27 bug334.go:16: invalid receiver type cplx64
28 bug334.go:17: invalid receiver type cplx128
29 bug334.go:22: c64.Foo undefined (type cplx128 has no field or method Foo)
30 bug334.go:23: c128.Foo undefined (type cplx64 has no field or method Foo)