summaryrefslogtreecommitdiff
path: root/src/cmd/gc/go.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-20 11:45:53 -0700
committerRuss Cox <rsc@golang.org>2010-06-20 11:45:53 -0700
commit3d434f2574c951249e9b317d3313617963673269 (patch)
tree9a814e6cb257c3224f01cfa0d9e827b687a5bc45 /src/cmd/gc/go.h
parent58da368d8786780b73dc3d094c5f81c34df07a10 (diff)
downloadgolang-3d434f2574c951249e9b317d3313617963673269.tar.gz
gc: better error messages for interface failures, conversions
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 http://codereview.appspot.com/1736041
Diffstat (limited to 'src/cmd/gc/go.h')
-rw-r--r--src/cmd/gc/go.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gc/go.h b/src/cmd/gc/go.h
index 1cf459cd8..5279e659a 100644
--- a/src/cmd/gc/go.h
+++ b/src/cmd/gc/go.h
@@ -1035,7 +1035,7 @@ int Tconv(Fmt *fp);
int Tpretty(Fmt *fp, Type *t);
int Zconv(Fmt *fp);
Node* adddot(Node *n);
-int adddot1(Sym *s, Type *t, int d, Type **save);
+int adddot1(Sym *s, Type *t, int d, Type **save, int ignorecase);
Type* aindex(Node *b, Type *t);
int algtype(Type *t);
void argtype(Node *on, Type *t);
@@ -1066,7 +1066,7 @@ Type** getoutarg(Type *t);
Type* getoutargx(Type *t);
Type** getthis(Type *t);
Type* getthisx(Type *t);
-int implements(Type *t, Type *iface, Type **m, Type **samename);
+int implements(Type *t, Type *iface, Type **missing, Type **have, int *ptr);
void importdot(Pkg *opkg, Node *pack);
int is64(Type *t);
int isblank(Node *n);