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 can't parse '[][]' #1574

Closed
p6rt opened this issue Mar 4, 2010 · 5 comments
Closed

Rakudo can't parse '[][]' #1574

p6rt opened this issue Mar 4, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Mar 4, 2010

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

Searchable as RT73308$

@p6rt
Copy link
Author

p6rt commented Mar 4, 2010

From @masak

<masak> std​: [][]
<p6eval> std 29936​: OUTPUT«ok 00​:01 106m␤»
<masak> rakudo​: [][]
<p6eval> rakudo 37e574​: OUTPUT«Confused at line 11, near "[][]" [...]
<masak> is it just something unimplemented, or worthy of a bug report?
<masak> alpha​: [][]
<p6eval> alpha 30e0ed​: ( no output )
<masak> it regressed, so I'm reporting it.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented May 29, 2010

From @jnthn

On Thu Mar 04 14​:49​:00 2010, masak wrote​:

<masak> std​: [][]
<p6eval> std 29936​: OUTPUT«ok 00​:01 106m␤»
<masak> rakudo​: [][]
<p6eval> rakudo 37e574​: OUTPUT«Confused at line 11, near "[][]" [...]
<masak> is it just something unimplemented, or worthy of a bug report?
<masak> alpha​: [][]
<p6eval> alpha 30e0ed​: ( no output )
<masak> it regressed, so I'm reporting it.
* masak submits rakudobug

Musta got fixed somewhere along the road, since it parses it now​:

15​:46 <@​jnthn> rakudo​: [][]
15​:46 < p6eval> rakudo bbb336​: ( no output )

Giving to moritz++ for spectests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented May 29, 2010

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

@p6rt
Copy link
Author

p6rt commented May 30, 2010

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

@p6rt p6rt closed this as completed May 30, 2010
@p6rt
Copy link
Author

p6rt commented May 30, 2010

From @kyleha

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

commit f3c51207d68c790b8ec8c76e9b12470a9490507c
Author​: moritz <moritz@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Sun May 30 13​:50​:53 2010 +0000

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

Inline Patch
diff --git a/t/spec/S02-builtin_data_types/array.t b/t/spec/S02-builtin_data_types/array.t
index 008dd95..f9524ed 100644
--- a/t/spec/S02-builtin_data_types/array.t
+++ b/t/spec/S02-builtin_data_types/array.t
@@ -2,7 +2,7 @@ use v6;
 
 use Test;
 
-plan 95;
+plan 96;
 
 #L<S02/Mutable types/Array>
 
@@ -320,4 +320,9 @@ my @array2 = ("test", 1, Mu);
     dies_ok({push @arr, 4.2}, 'type constraints on my Type @arr[num]  works (2)');
 }
 
+# RT #73308
+{
+    is [][].elems, 0, '[][] returns empty list/array';
+}
+
 # vim: ft=perl6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant