• Russ Cox's avatar
    new interface error messages · 6f07ec72
    Russ Cox authored
    	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
    6f07ec72
Name
Last commit
Last update
..
Makefile Loading commit data...
amd64_darwin.h Loading commit data...
amd64_linux.h Loading commit data...
array.c Loading commit data...
chan.c Loading commit data...
iface.c Loading commit data...
map.c Loading commit data...
print.c Loading commit data...
proc.c Loading commit data...
rt0_amd64.s Loading commit data...
rt0_amd64_darwin.s Loading commit data...
rt0_amd64_linux.s Loading commit data...
rt1_amd64_darwin.c Loading commit data...
rt1_amd64_linux.c Loading commit data...
rt2_amd64.c Loading commit data...
rune.c Loading commit data...
runtime.c Loading commit data...
runtime.h Loading commit data...
signals.h Loading commit data...
string.c Loading commit data...
sys_amd64_darwin.s Loading commit data...
sys_amd64_linux.s Loading commit data...
sys_file.c Loading commit data...
sys_types.h Loading commit data...