Commit b5e75621 authored by Ken Thompson's avatar Ken Thompson

supply default indirection to

map indexing - bug 143

R=r
OCL=27695
CL=27695
parent 5cb6843a
......@@ -465,6 +465,7 @@ loop:
case OINDEX:
if(cl == 2 && cr == 1) {
// a,b = map[] - mapaccess2
implicitstar(&r->left);
walktype(r->left, Erv);
if(!istype(r->left->type, TMAP))
break;
......@@ -3227,6 +3228,7 @@ multi:
// if so, types are valuetype,bool
if(cl != 2)
goto badt;
implicitstar(&nr->left);
walktype(nr->left, Elv);
t = nr->left->type;
if(!istype(t, TMAP))
......
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