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
Rakudo doesn't allow you to call a subroutine if you chose to call it 's' #1274
Comments
From @masak<masak> rakudo: sub s {}; s |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S05-substitution/subst.t commit 5acf484a284f8e60d042bced81dadcdb62cedf5e [t/spec] Test for RT #69044 Inline Patchdiff --git a/t/spec/S05-substitution/subst.t b/t/spec/S05-substitution/subst.t
index ac3b1e0..9320dd0 100644
--- a/t/spec/S05-substitution/subst.t
+++ b/t/spec/S05-substitution/subst.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 76;
+plan *;
# L<S05/Substitution/>
@@ -195,5 +195,14 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
}
}
+# RT #69044
+{
+ sub s { 'sub s' }
+ #?rakudo skip 'RT 69044'
+ is s, 'sub s', 'can call sub s as "s"';
+ is s(), 'sub s', 'can call sub s as "s()"';
+}
+
+done_testing;
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @kylehaThe tests have been updated (in r28939) to reflect the fact that 'bare s |
@kyleha - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#69044 (status was 'rejected')
Searchable as RT69044$
The text was updated successfully, but these errors were encountered: