New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty groups should die with a better message #1139
Comments
From duff@lighthouse.tamucc.edu15:42 <@PerlJam> rakudo: say "" ~~ /[]/ The above also holds for capturing groups. |
@coke - Status changed from 'new' to 'open' |
From @moritz21:13 < moritz_> rakudo: / | /; say "alive" |
From @bbkrNOM both cases still broken bbkr:nom bbkr$ ./perl6 -e 'say "" ~~ /[]/' (no output for this one) |
From @diakopterOn Sun Sep 11 02:09:36 2011, bbkr wrote:
this has a much later duplicate ticket. |
From @cokeOn Sun Sep 11 02:09:36 2011, bbkr wrote:
Both of these now die with "Null regex not allowed" - Closable with tests. -- |
From @moritzOn Sat Feb 22 17:15:34 2014, coke wrote:
Now tested: commit 2582eed4dce4c012eb8d2501934e3720568fad8d Tests for RT #67554 Inline Patchdiff --git a/S32-exceptions/misc.t b/S32-exceptions/misc.t
index 9aaef14..1dd6284 100644
--- a/S32-exceptions/misc.t
+++ b/S32-exceptions/misc.t
@@ -139,6 +139,9 @@ throws_like q[/ /], X::Syntax::Regex::NullRegex;
throws_like q[/ a | /], X::Syntax::Regex::NullRegex;
throws_like q[/ a || /], X::Syntax::Regex::NullRegex;
throws_like q[/ a & /], X::Syntax::Regex::NullRegex;
+# RT 67554
+throws_like q{/ [] /}, X::Syntax::Regex::NullRegex;
+throws_like q{/ | /}, X::Syntax::Regex::NullRegex;
throws_like 'sub f($a?, $b) { }', X::Parameter::WrongOrder, |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#67554 (status was 'resolved')
Searchable as RT67554$
The text was updated successfully, but these errors were encountered: