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

A map that works outside of a module doesn't work inside it in Rakudo #881

Closed
p6rt opened this issue Apr 9, 2009 · 4 comments
Closed

A map that works outside of a module doesn't work inside it in Rakudo #881

p6rt opened this issue Apr 9, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Apr 9, 2009

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

Searchable as RT64606$

@p6rt
Copy link
Author

p6rt commented Apr 9, 2009

From @masak

<masak> rakudo​: say (1,2,3).map​: { $_ }
<p6eval> rakudo 486694​: OUTPUT«123␤»
<masak> rakudo​: module Foo { say (1,2,3).map​: { $_ } }
<p6eval> rakudo 486694​: OUTPUT«Parameter type check failed for expr in
call to map [...]
* masak submits rakudobug

I'd expect the parameter type check to the map to pass or fail in the
same way, regardless of whether the map is in a module or not.

@p6rt
Copy link
Author

p6rt commented May 13, 2009

From @moritz

On Thu Apr 09 08​:50​:57 2009, masak wrote​:

<masak> rakudo​: say (1,2,3).map​: { $_ }
<p6eval> rakudo 486694​: OUTPUT«123␤»
<masak> rakudo​: module Foo { say (1,2,3).map​: { $_ } }
<p6eval> rakudo 486694​: OUTPUT«Parameter type check failed for expr in
call to map [...]
* masak submits rakudobug

I'd expect the parameter type check to the map to pass or fail in the
same way, regardless of whether the map is in a module or not.

Test added to t/spec/S10-packages/basic.t

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented May 13, 2009

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

@p6rt
Copy link
Author

p6rt commented Mar 30, 2010

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

@p6rt p6rt closed this as completed Mar 30, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant