1
0
mirror of https://github.com/golang/go synced 2024-11-26 06:57:56 -07:00
The Go programming language
Go to file
Russ Cox 6f07ec721a new interface error messages
package main
	func main() {
		var i interface { } = 1;
		a := i.(*[]byte);
	}

interface { } is int, not *[]uint8
throw: interface conversion

	package main
	func main() {
		var i interface { };
		a := i.(*[]byte);
	}

interface is nil, not *[]uint8
throw: interface conversion

	package main
	func main() {
		i := sys.unreflect(0, "*bogus");
		a := i.(*[]byte);
	}

interface { } is *bogus, not *[]uint8
throw: interface conversion

R=r
DELTA=30  (24 added, 2 deleted, 4 changed)
OCL=18548
CL=18565
2008-11-05 13:05:01 -08:00
doc - added (incomplete) section on parameter passing 2008-11-04 16:46:45 -08:00
include 6l: 2008-10-20 17:33:51 -07:00
lib help management of empty pkg and lib directories in perforce 2008-07-21 17:10:49 -07:00
pkg help management of empty pkg and lib directories in perforce 2008-07-21 17:10:49 -07:00
src new interface error messages 2008-11-05 13:05:01 -08:00
test Fix powser1.go to compile with the current 6g, which doesn't 2008-11-05 12:06:48 -08:00
usr/gri get rid of bignum leftovers 2008-11-04 14:08:47 -08:00