mirror of
https://github.com/golang/go
synced 2024-11-05 14:46:11 -07:00
1912632019
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev https://golang.org/cl/194053
10 lines
67 B
Go
10 lines
67 B
Go
package p
|
|
|
|
type T struct {
|
|
X, Y int
|
|
}
|
|
|
|
type I interface {
|
|
M(T)
|
|
}
|