1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:44:50 -07:00
go/test/fixedbugs/bug248.dir/bug0.go
Russ Cox 1912632019 runtime, type switch: eliminate package global name space assumption
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
2010-01-25 18:23:20 -08:00

10 lines
67 B
Go

package p
type T struct {
X, Y int
}
type I interface {
M(T)
}