Skip to content
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

Cannot call &my in Rakudo #1217

Closed
p6rt opened this issue Aug 9, 2009 · 5 comments
Closed

Cannot call &my in Rakudo #1217

p6rt opened this issue Aug 9, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 9, 2009

Migrated from rt.perl.org#68358 (status was 'resolved')

Searchable as RT68358$

@p6rt
Copy link
Author

p6rt commented Aug 9, 2009

From @masak

<masak> rakudo​: my($a) = 5; say 'alive'
<p6eval> rakudo 61f269​: OUTPUT«aliveâ�¤Â»
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Aug 10, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S02-names/identifier.t

commit 03e3b22b950c72abd52962a6283ba2b8c8a4f2cb
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Mon Aug 10 16​:50​:36 2009 +0000

  [t/spec] Test for RT #​68358
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;27949 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S02-names/identifier.t b/t/spec/S02-names/identifier.t
index ef80800..551e2b2 100644
--- a/t/spec/S02-names/identifier.t
+++ b/t/spec/S02-names/identifier.t
@@ -1,7 +1,7 @@
 use v6;
 use Test;
 
-plan 14;
+plan 15;
 
 # L<S02/Names/An identifier is composed of an alphabetic character>
 
@@ -60,4 +60,13 @@ plan 14;
     is sub('RT #65804'), 'RT #65804', 'sub named "sub" works';
 }
 
+# RT #68358
+{
+    my ($x);
+    sub my($a) { $a + 17 }
+    $x = 5;
+    #?rakudo todo 'RT #68358'
+    is my($x), 23, 'call to sub named "my" works';
+}
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Aug 10, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 20, 2011

From @tadzik

On Mon Aug 10 09​:55​:44 2009, KyleHa wrote​:

+# RT #​68358
+{
+ my ($x);
+ sub my($a) { $a + 17 }
+ $x = 5;
+ #?rakudo todo 'RT #​68358'
+ is my($x), 23, 'call to sub named "my" works';
+}
+
# vim​: ft=perl6

After fixing the test [1] it passes, so the ticket can be closed.

[1] Raku/roast@f8adce30dd

@p6rt
Copy link
Author

p6rt commented Feb 20, 2011

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Feb 20, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant