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

meta reduce op fails when argumens involve detached methods #6152

Closed
p6rt opened this issue Mar 14, 2017 · 4 comments
Closed

meta reduce op fails when argumens involve detached methods #6152

p6rt opened this issue Mar 14, 2017 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Mar 14, 2017

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

Searchable as RT130998$

@p6rt
Copy link
Author

p6rt commented Mar 14, 2017

From @zoffixznet

The parse gives 'Confused...' error with both, detached `.grep` and detached `.uc` examples.
In addition, when parentheses are removed, the `.grep` version returns an empty list, which
is incorrect, while the `'a' .uc` version correctly returns 'A'

17​:16 SmokeMachine m​: say [+] ( ^20 .grep​: *.is-prime ) # <- is that a bug?
17​:16 camelia rakudo-moar daa71e​: OUTPUT​: «5===SORRY!5=== Error while compiling <tmp>␤Confused␤at <tmp>​:1␤------> 3say [+] ( ^20 .7⏏5grep​: *.is-prime ) # <- is that a bug?␤»
17​:16 SmokeMachine m​: say [+] ^20 .grep​: *.is-prime # <- is that a bug?
17​:16 camelia rakudo-moar daa71e​: OUTPUT​: «()␤»

17​:18 IOninja m​: say [] 'a' .uc
17​:18 camelia rakudo-moar daa71e​: OUTPUT​: «A␤»
17​:18 IOninja m​: say [
] ("a" .uc)
17​:18 camelia rakudo-moar daa71e​: OUTPUT​: «5===SORRY!5=== Error while compiling <tmp>␤Confused␤at <tmp>​:1␤------> 3say [~] ("a" .7⏏5uc)␤»

@p6rt
Copy link
Author

p6rt commented Mar 15, 2017

From @zoffixznet

Fixed in rakudo/rakudo@e1ebb503c6

Tests needed

@p6rt
Copy link
Author

p6rt commented Mar 15, 2017

@p6rt p6rt closed this as completed Mar 15, 2017
@p6rt
Copy link
Author

p6rt commented Mar 15, 2017

@zoffixznet - Status changed from 'new' to 'resolved'

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