genconv(f->type, arg->type);
gopcode(PLOAD, PTADDR, a->nname);
gopcode(PADDO, PTADDR, f->nname);
- gopcodet(PSTOREI, arg->type, N);
+ gopcodet(PSTOREI, f->type, N);
}
arg = listnext(&save);
f = f->down;
%type <node> simple_stmt osimple_stmt
%type <node> expr uexpr pexpr expr_list oexpr oexpr_list expr_list_r
%type <node> name name_name new_name new_name_list_r
-%type <node> type polytype
-%type <node> new_type
+%type <node> type new_type
%type <node> vardcl_list_r vardcl
%type <node> constdcl_list_r constdcl
%type <node> typedcl_list_r typedcl
{
$$ = aindex($2, $4);
}
-| LCHAN chantype polytype
+| LCHAN chantype type
{
$$ = nod(OTYPE, N, N);
$$->etype = TCHAN;
$$->type = $3;
$$->chan = $2;
}
-| LMAP '[' type ']' polytype
+| LMAP '[' type ']' type
{
$$ = nod(OTYPE, N, N);
$$->etype = TMAP;
{
$$ = dostruct(N, TINTER);
}
+| LANY
+ {
+ $$ = nod(OTYPE, N, N);
+ $$->etype = TANY;
+ }
| fntypeh
| '*' type
{
$$ = forwdcl($2);
}
-polytype:
- type
-| LANY
- {
- $$ = nod(OTYPE, N, N);
- $$->etype = TPOLY;
- }
-
chantype:
{
$$ = Cboth;