]> Cypherpunks repositories - gostls13.git/commit
do not set t->recur on basic types.
authorRuss Cox <rsc@golang.org>
Sat, 18 Oct 2008 00:51:29 +0000 (17:51 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 18 Oct 2008 00:51:29 +0000 (17:51 -0700)
commit5fe4cd83a8a7b91c5872d36db88858510b530b90
tree22fc19c120657a41e0254538c4cfe8407b0c2534
parentab9db8a5f8b8047d007b6187cd5fd0a9db7f8fff
do not set t->recur on basic types.
the comment talked about printing, but now
t->recur is only used for typehash.
in typehash it is important to compute different
hashes for the different basic types.

add test that makes sure an interface { X() int8 }
cannot be used as interface { X() int64 }

R=ken
OCL=17396
CL=17396
src/cmd/gc/lex.c
test/golden.out
test/interface3.go [new file with mode: 0644]