mirror of
https://github.com/golang/go
synced 2024-11-12 01:00:22 -07:00
bug with select :=
R=r OCL=25278 CL=25278
This commit is contained in:
parent
82c38cf8dd
commit
a665e2924c
@ -343,7 +343,6 @@ loop:
|
|||||||
case OSELECT:
|
case OSELECT:
|
||||||
if(top != Etop)
|
if(top != Etop)
|
||||||
goto nottop;
|
goto nottop;
|
||||||
|
|
||||||
walkselect(n);
|
walkselect(n);
|
||||||
goto ret;
|
goto ret;
|
||||||
|
|
||||||
@ -1487,6 +1486,7 @@ selectas(Node *name, Node *expr)
|
|||||||
|
|
||||||
if(expr == N || expr->op != ORECV)
|
if(expr == N || expr->op != ORECV)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
walktype(expr->left, Erv);
|
||||||
t = expr->left->type;
|
t = expr->left->type;
|
||||||
if(t == T)
|
if(t == T)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
Loading…
Reference in New Issue
Block a user