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) ...@@ -1556,13 +1556,15 @@ dclmethod(Type *t)
t->methptr |= 1<<ptr; t->methptr |= 1<<ptr;
// check types // check types
// TODO(rsc): map, chan etc are not quite right
if(!issimple[t->etype]) if(!issimple[t->etype])
switch(t->etype) { switch(t->etype) {
default: default:
return T; return T;
case TSTRUCT: case TSTRUCT:
case TARRAY: case TARRAY:
case TMAP:
case TCHAN:
case TSTRING:
break; 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