yaegi
yaegi copied to clipboard
Variable accessible outside scope: bug or feature?
Variable accessible outside scope: bug or feature?
$ yaegi
> i
1:28: undefined: i
> for i := 0; i < 10; i++ { }
: 10
> i
: 10
>
Yes, a bug! Thanks for noticing.