gap> f := function()
>     return 1[1];
> end;
function(  ) ... end
gap> f();
Error, List Element: <list> must be a list (not the integer 1) in
  return 1[1]; at *stdin*:3 called from 
<function "f">( <arguments> )
 called from read-eval loop at *stdin*:5
type 'quit;' to quit to outer loop
brk> QUIT;
