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

There's no Pair.elems anymore in Rakudo #1730

Closed
p6rt opened this issue Apr 28, 2010 · 5 comments
Closed

There's no Pair.elems anymore in Rakudo #1730

p6rt opened this issue Apr 28, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 28, 2010

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

Searchable as RT74732$

@p6rt
Copy link
Author

p6rt commented Apr 28, 2010

From @masak

<moritz_> rakudo​: say (a => 1).elems
<p6eval> rakudo 082cae​: OUTPUT«Method 'elems' not found for invocant
of class 'Pair' [...]
<moritz_> alpha​: say (a => 1).elems
<p6eval> alpha 30e0ed​: OUTPUT«1␤»
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Apr 28, 2010

From @kyleha

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

commit 9fd71beb3606290483fe7542565b0ea02d438c7a
Author​: moritz <moritz@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Wed Apr 28 13​:35​:55 2010 +0000

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

Inline Patch
diff --git a/t/spec/S02-literals/pairs.t b/t/spec/S02-literals/pairs.t
index b571f67..192d3ac 100644
--- a/t/spec/S02-literals/pairs.t
+++ b/t/spec/S02-literals/pairs.t
@@ -23,7 +23,7 @@ use Test;
 #   S02 lists ':a' as being equivlaent to a => 1, so
 #   the type of the value of that pair is Int, not Bool
 
-plan 47;
+plan 48;
 
 sub f1 ($a, $b) { $a.WHAT ~ $b.WHAT }
 {
@@ -148,4 +148,8 @@ sub f9 (:$bar!) { WHAT($bar) }
         "variables cannot be keys of syntactical pairs (3)";
 }
 
+{
+    is (a => 3).elems, 1, 'Pair.elems';
+}
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Apr 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Apr 28, 2010

From @moritz

Fixed in 6a502fcb6675d313df7739536128bf227c3814ae

@p6rt
Copy link
Author

p6rt commented Apr 28, 2010

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

@p6rt p6rt closed this as completed Apr 28, 2010
@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