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

Rakudo parses "{ }\n&f" as a junction #2280

Closed
p6rt opened this issue Nov 29, 2010 · 5 comments
Closed

Rakudo parses "{ }\n&f" as a junction #2280

p6rt opened this issue Nov 29, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 29, 2010

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

Searchable as RT79964$

@p6rt
Copy link
Author

p6rt commented Nov 29, 2010

From @Kodiologist

my &f;
sub g() { }
&f;

# Yields​:
# invoke() not implemented in class 'Any'
# in main program body at line 3​:/tmp/a
# unless you add a semicolon to line 2 or declare
# &f after &g.

@p6rt
Copy link
Author

p6rt commented Nov 29, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in S04-statements/terminator.t

commit 4cb303effa82269e2fc72f91ddeb800042d77da0
Author​: Kodi Arfer <hippo@​Thoth.(none)>
Date​: Mon Nov 29 18​:25​:42 2010 -0500

  [S04-statements/terminator.t] Added a test for RT #​79964.

Inline Patch
diff --git a/S04-statements/terminator.t b/S04-statements/terminator.t
index cbc0edd..5238797 100644
--- a/S04-statements/terminator.t
+++ b/S04-statements/terminator.t
@@ -2,7 +2,7 @@ use v6;
 
 use Test;
 
-plan 14;
+plan 15;
 
 # L<S04/"Statement-ending blocks"/"will terminate a statement">
 
@@ -54,4 +54,8 @@ eval_dies_ok "42 if 23\nis 50; 1",
 # not sure this belong here, suggestions for better places are welcome
 eval_dies_ok '(1) { $foo = 2 }', 'parens do not eat spaces after them';
 
+# RT #79964
+#?rakudo todo 'RT #79964'
+eval_lives_ok "my &f;\nsub g() { }\n&f;", 'implicit terminator before & sigil';
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Nov 29, 2010

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

@p6rt
Copy link
Author

p6rt commented Jun 9, 2013

From @jnthn

On Mon Nov 29 15​:30​:07 2010, KyleHa wrote​:

+# RT #​79964
+#?rakudo todo 'RT #​79964'
+eval_lives_ok "my &f;\nsub g() { }\n&f;", 'implicit terminator before
& sigil';
+

Oops, the { } interpolates there. Fixed the test, which now passes thanks
to a fix for the real bug a while back; resolving.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jun 9, 2013

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

@p6rt p6rt closed this as completed Jun 9, 2013
@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