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

I can haz two identcal variables in my parameter list, and Rakudo doesn't complain even a little! #1187

Closed
p6rt opened this issue Jul 31, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 31, 2009

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

Searchable as RT68086$

@p6rt
Copy link
Author

p6rt commented Jul 31, 2009

From @masak

<masak> rakudo​: sub foo($a, $a) { say $a }; foo(42, 5)
<p6eval> rakudo e02bc0​: OUTPUT«5␤»
<masak> hah!
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Aug 1, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/named-parameters.t

commit b0576f2c9b411cd079e5716c279b1173d6288b6a
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Sat Aug 1 04​:30​:03 2009 +0000

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

Inline Patch
diff --git a/t/spec/S06-signature/named-parameters.t b/t/spec/S06-signature/named-parameters.t
index 4561efb..83efe31 100644
--- a/t/spec/S06-signature/named-parameters.t
+++ b/t/spec/S06-signature/named-parameters.t
@@ -1,7 +1,7 @@
 use v6;
 use Test;
 
-plan 75;
+plan 76;
 
 # L<S06/Required parameters/"Passing a named argument that cannot be bound to
 # a normal subroutine is also a fatal error.">
@@ -217,5 +217,7 @@ ok(%fellowship<dwarf> ~~ undef, "dwarf arg was not given");
     dies_ok { renames(:x(23)) }, 'old name is not available';
 }
 
+#?rakudo todo 'RT #68086'
+eval_dies_ok 'sub rt68086( $a, $a ) { }', 'two sub params with the same name';
 
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Aug 1, 2009

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

@p6rt
Copy link
Author

p6rt commented Mar 9, 2010

From @moritz

fixed, test pass...

@p6rt
Copy link
Author

p6rt commented Mar 9, 2010

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

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