]> Cypherpunks repositories - gostls13.git/commit
fix bug involving typed nil constants:
authorRuss Cox <rsc@golang.org>
Tue, 7 Jul 2009 04:37:29 +0000 (21:37 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 7 Jul 2009 04:37:29 +0000 (21:37 -0700)
commita14b28a24d1add0c260160f9fbb986597961b7eb
treef91706d8c3a0e7268297efa8bd66d1f3d98d2959
parent7af032b87bd6673904e5f717a978897afd1d0ac2
fix bug involving typed nil constants:
interface = (*int)(nil) is not the same as
interface = nil.

package main
func main() {
var x interface{} = (*int)(nil);
println(x.(*int));
}

R=ken
OCL=31232
CL=31232
src/cmd/gc/const.c