gap> f := function()
>     local l;
>     l := [];
>     return l[0];
> end;
function(  ) ... end
gap> f();
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `[]' on 2 arguments
Stack trace:
*[1] return l[0];
   @ *stdin*:5
<function "f">( <arguments> )
 called from read-eval loop at *stdin*:7
type 'quit;' to quit to outer loop
brk> QUIT;
