if(isptrarray(t) && isptrdarray(l->type))
goto ret;
- // interface and structure
- et = isandss(n->type, l);
- if(et != Inone) {
- indir(n, ifaceop(n->type, l, et));
- goto ret;
- }
-
// structure literal
if(t->etype == TSTRUCT) {
indir(n, structlit(n));
goto ret;
}
+ // interface and structure
+ et = isandss(n->type, l);
+ if(et != Inone) {
+ indir(n, ifaceop(n->type, l, et));
+ goto ret;
+ }
+
if(l->type != T)
yyerror("cannot convert %T to %T", l->type, t);
goto ret;