-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when returning from "method not found" break loop
Fixes #2447
- Loading branch information
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# test returning from a 'method not found' error | ||
f:=a->a+a;; f(()); | ||
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
gap> # test returning from a 'method not found' error | ||
gap> f:=a->a+a;; f(()); | ||
Error, no method found! For debugging hints type ?Recovery from NoMethodFound | ||
Error, no 1st choice method found for `+' on 2 arguments at GAPROOT/lib/methsel2.g:250 called from | ||
a + a at *stdin*:3 called from | ||
<function "f">( <arguments> ) | ||
called from read-eval loop at *stdin*:3 | ||
you can 'quit;' to quit to outer loop, or | ||
you can 'return;' to continue | ||
brk> return; | ||
Error, no method returned in | ||
return a + a; at *stdin*:3 called from | ||
<function "f">( <arguments> ) | ||
called from read-eval loop at *stdin*:3 | ||
gap> QUIT; |