mirror of
https://github.com/golang/go
synced 2024-11-26 01:07:57 -07:00
typeswitch - expression evaluated
twice instead of once. R=r OCL=27015 CL=27015
This commit is contained in:
parent
62d11a3302
commit
2450c590e9
@ -788,7 +788,7 @@ typeswitch(Node *sw)
|
||||
|
||||
a = syslook("ifacethash", 1);
|
||||
argtype(a, sw->ntest->right->type);
|
||||
a = nod(OCALL, a, sw->ntest->right);
|
||||
a = nod(OCALL, a, facename);
|
||||
a = nod(OAS, hashname, a);
|
||||
cas = list(cas, a);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user