mirror of
https://github.com/golang/go
synced 2024-11-06 08:36:14 -07:00
0c5d545ccd
We seem to lack any tests for some corner cases of itab.init (multiple methods with the same name, breaking itab.init doesn't seem to fail any tests). We also lack tests that fix text of panics. Add more tests for itab.init. Change-Id: Id6b536179ba6b0d45c3cb9dc1c66b9311d0ab85e Reviewed-on: https://go-review.googlesource.com/c/go/+/202451 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
22 lines
305 B
Go
22 lines
305 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package p
|
|
|
|
type I1 interface {
|
|
Foo(int)
|
|
}
|
|
|
|
type I2 interface {
|
|
foo(int)
|
|
}
|
|
|
|
type M1 int
|
|
|
|
func (M1) foo() {}
|
|
|
|
type M2 int
|
|
|
|
func (M2) foo(int) {}
|