• Russ Cox's avatar
    gc: better error messages for interface failures, conversions · a212d174
    Russ Cox authored
    x.go:13: cannot use t (type T) as type Reader in assignment:
    	T does not implement Reader (Read method requires pointer receiver)
    x.go:19: cannot use q (type Q) as type Reader in assignment:
    	Q does not implement Reader (missing Read method)
    		have read()
    		want Read()
    x.go:22: cannot use z (type int) as type Reader in assignment:
    	int does not implement Reader (missing Read method)
    
    x.go:24: too many arguments to conversion to complex: complex(1, 3)
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/1736041
    a212d174
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...