Commit af5e16cf authored by Russ Cox's avatar Russ Cox

fix new(T) if type T []int.

make sure type of expr is T not just []int

R=ken
OCL=21688
CL=21688
parent 2b33a134
......@@ -2671,6 +2671,7 @@ arrayop(Node *n, int top)
r = nod(OCALL, on, r);
walktype(r, top);
r->type = t; // if t had a name, going through newarray lost it
break;
case OSLICE:
......
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