Skip to content

Commit

Permalink
Verify issue #2656 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored and ChrisJefferson committed Oct 24, 2018
1 parent 054d926 commit da185a7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tst/testspecial/backtrace.g
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ f:=function() local x; Assert(0, 1, "hello"); return 2; end;;
f();
Where();
quit;

# Verify issue #2656 is fixed
l := [[1]];; f := {} -> l[2,1];;
f();
Where();
quit;
15 changes: 15 additions & 0 deletions tst/testspecial/backtrace.g.out
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,19 @@ brk> Where();
<function "f">( <arguments> )
called from read-eval loop at *errin*:1
brk> quit;
gap>
gap> # Verify issue #2656 is fixed
gap> l := [[1]];; f := {} -> l[2,1];;
gap> f();
Error, List Element: <list>[2] must have an assigned value in
return m[i][j]; at GAPROOT/lib/matrix.gi:29 called from
return l[2, 1]; at *stdin*:39 called from
<function "f">( <arguments> )
called from read-eval loop at *stdin*:40
you can 'return;' after assigning a value
brk> Where();
return l[2, 1]; at *stdin*:39 called from
<function "f">( <arguments> )
called from read-eval loop at *errin*:1
brk> quit;
gap> QUIT;

0 comments on commit da185a7

Please sign in to comment.