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 interface methods with different return types are distinct.
11 type S struct { a int }
12 type T struct { b string }
14 func (s *S) Name() int8 { return 1 }
15 func (t *T) Name() int64 { return 64 }
17 type I1 interface { Name() int8 }
18 type I2 interface { Name() int64 }
31 func shouldPanic(f func()) {
34 panic("function should panic")