1
// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should not succeed)
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
// Check methods with different return types.
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 }