mirror of
https://github.com/golang/go
synced 2024-11-18 19:54:44 -07:00
bug075
R=r OCL=15192 CL=15192
This commit is contained in:
parent
e28ccebd3a
commit
47580f79b4
@ -406,6 +406,7 @@ loop:
|
||||
case OINDEXPTR:
|
||||
if(cl == 2 && cr == 1) {
|
||||
// a,b = map[] - mapaccess2
|
||||
walktype(r->left, Erv);
|
||||
if(!isptrto(r->left->type, TMAP))
|
||||
break;
|
||||
l = mapop(n, top);
|
||||
|
@ -114,6 +114,7 @@ sys·mapaccess1(Hmap *m, ...)
|
||||
}
|
||||
|
||||
m->valalg->copy(m->valsize, av, 0);
|
||||
throw("sys·mapaccess1: key not in map");
|
||||
|
||||
out:
|
||||
if(debug) {
|
||||
|
Loading…
Reference in New Issue
Block a user