Commit 316d377a authored by Russ Cox's avatar Russ Cox

now that TCHAN, TMAP, and TSTRING are real types,

can do methods on them without pointer worries.

R=ken
OCL=22434
CL=22436
parent c45d2a76
......@@ -1556,13 +1556,15 @@ dclmethod(Type *t)
t->methptr |= 1<<ptr;
// check types
// TODO(rsc): map, chan etc are not quite right
if(!issimple[t->etype])
switch(t->etype) {
default:
return T;
case TSTRUCT:
case TARRAY:
case TMAP:
case TCHAN:
case TSTRING:
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment