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
'sub' cannot be used as a routine name #1005
Comments
From @azawawiGiven that: sub if($foo) { Works under std/rakudo. The same should work to this case (if i am not sub sub($foo) { Regards, |
From @masakThis one seems fixed. <masak> rakudo: sub sub($foo) { say "OH HAI" }; sub(1) I'd close, but it could perhaps use a spectest; assigning to KyleHa++. |
From [Unknown Contact. See original ticket]This one seems fixed. <masak> rakudo: sub sub($foo) { say "OH HAI" }; sub(1) I'd close, but it could perhaps use a spectest; assigning to KyleHa++. |
@masak - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-names/identifier.t commit 6691821ec8ec940f2ad5964121be8232c1c6b720 [t/spec] Test for RT #65804 Inline Patchdiff --git a/t/spec/S02-names/identifier.t b/t/spec/S02-names/identifier.t
index 494e36c..ef80800 100644
--- a/t/spec/S02-names/identifier.t
+++ b/t/spec/S02-names/identifier.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 13;
+plan 14;
# L<S02/Names/An identifier is composed of an alphabetic character>
@@ -54,4 +54,10 @@ plan 13;
is method-check(), 'method-check', 'can call method-check';
}
+# RT #65804
+{
+ sub sub($foo) { $foo }
+ is sub('RT #65804'), 'RT #65804', 'sub named "sub" works';
+}
+
# vim: ft=perl6 |
From @kylehaOn Sun Aug 02 01:16:19 2009, masak wrote:
The new test is passing, so I'll resolve this now. |
@kyleha - Status changed from 'open' to 'resolved' |
From @azawawiAlright thanks... On Sun, Aug 2, 2009 at 9:02 PM, Kyle Hasselbacher via
|
Migrated from rt.perl.org#65804 (status was 'resolved')
Searchable as RT65804$
The text was updated successfully, but these errors were encountered: