forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tag off low-priority SyntaxError specs
These are not commonly-used syntax and not raising the correct error here does not impact typical usage.
- Loading branch information
Showing
3 changed files
with
6 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fails(low-priority missing syntax error):delegation with def(*) within a block that accepts anonymous rest within a method that accepts anonymous rest does not allow delegating rest | ||
fails(low-priority missing syntax error):delegation with def(**) within a block that accepts anonymous kwargs within a method that accepts anonymous kwargs does not allow delegating kwargs | ||
fails(low-priority missing syntax error):delegation with def(&) within a block that accepts anonymous block within a method that accepts anonymous block does not allow delegating a block |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
fails:The ** operator makes a copy when calling a method taking a positional Hash | ||
fails:The ** operator hash with omitted value raises a SyntaxError when the hash key ends with `!` | ||
fails:The ** operator hash with omitted value raises a SyntaxError when the hash key ends with `?` | ||
fails(low-priority missing syntax error):Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes and 'key: value' syntax used |
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,2 @@ | ||
fails(low-priority missing syntax error):Source files encoded in UTF-16 LE with a BOM are invalid because they contain an invalid UTF-8 sequence before the encoding comment | ||
fails(low-priority missing syntax error):Source files encoded in UTF-16 BE with a BOM are invalid because they contain an invalid UTF-8 sequence before the encoding comment |