Commit 73653841 authored by Russ Cox's avatar Russ Cox

reject struct to interface conversion for now

R=ken
OCL=21007
CL=21007
parent 9ba97ca3
......@@ -2733,7 +2733,12 @@ isandss(Type *lt, Node *r)
return I2I;
return Inone;
}
if(isnilinter(lt) || ismethod(rt) != T)
if(isnilinter(lt)) {
if(!issimple[rt->etype] && !isptr[rt->etype])
yyerror("using %T as interface is unimplemented", rt);
return T2I;
}
if(ismethod(rt) != T)
return T2I;
return Inone;
}
......
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