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 committed Oct 24, 2018
1 parent 5904e7c commit 832d7d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tst/testspecial/backtrace.g
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,8 @@ f:=function() local x; Assert(0, 1, "hello"); return 2; end;;
f();
Where();
quit;

l := [[1]];; f := {} -> l[2,1];;
f();
Where();
quit;
14 changes: 14 additions & 0 deletions tst/testspecial/backtrace.g.out
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,18 @@ brk> Where();
<function "f">( <arguments> )
called from read-eval loop at *errin*:1
brk> quit;
gap>
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*:38 called from
<function "f">( <arguments> )
called from read-eval loop at *stdin*:39
you can 'return;' after assigning a value
brk> Where();
return l[2, 1]; at *stdin*:38 called from
<function "f">( <arguments> )
called from read-eval loop at *errin*:1
brk> quit;
gap> QUIT;

0 comments on commit 832d7d0

Please sign in to comment.