-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: catch some invalid uses of '~'; add tests
Also, print a (more) helpful error message. Before: gap> ~; Error, '~' does not have a value here not in any function at *stdin*:1 gap> x -> ~; function( x ) ... end gap> x -> (1,~); function( x ) ... end gap> (1,~); Error, '~' does not have a value here not in any function at *stdin*:4 After: gap> ~; Syntax error: '~' not allowed here ~; ^ gap> x -> ~; Syntax error: '~' not allowed here x -> ~; ^ gap> x -> (1,~); Syntax error: '~' not allowed here x -> (1,~); ^ gap> (1,~); Syntax error: '~' not allowed here (1,~); ^
- Loading branch information
Showing
3 changed files
with
77 additions
and
7 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
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