]> Cypherpunks repositories - gostls13.git/commit
runtime, type switch: eliminate package global name space assumption
authorRuss Cox <rsc@golang.org>
Tue, 26 Jan 2010 02:23:20 +0000 (18:23 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 26 Jan 2010 02:23:20 +0000 (18:23 -0800)
commit1912632019fc8b57dddf5d7cb3fbd976088f7cc3
tree8a2e8246aebaaaf7d57b9cf6b13055bef78ba2a9
parent3b1a0355b665f5cbc8bb6103579a0096acdfbbf5
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
17 files changed:
src/cmd/gc/go.h
src/cmd/gc/reflect.c
src/cmd/gc/subr.c
src/cmd/gc/swt.c
src/cmd/gc/typecheck.c
src/pkg/reflect/type.go
src/pkg/reflect/value.go
src/pkg/runtime/iface.c
src/pkg/runtime/type.go
src/pkg/runtime/type.h
test/fixedbugs/bug248.dir/bug0.go [new file with mode: 0644]
test/fixedbugs/bug248.dir/bug1.go [new file with mode: 0644]
test/fixedbugs/bug248.dir/bug2.go [new file with mode: 0644]
test/fixedbugs/bug248.dir/bug3.go [new file with mode: 0644]
test/fixedbugs/bug248.go [new file with mode: 0644]
test/golden.out
test/typeswitch2.go [new file with mode: 0644]