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

Smartmatching Promise against an Enum hangs #5703

Closed
p6rt opened this issue Sep 28, 2016 · 3 comments
Closed

Smartmatching Promise against an Enum hangs #5703

p6rt opened this issue Sep 28, 2016 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 28, 2016

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

Searchable as RT129753$

@p6rt
Copy link
Author

p6rt commented Sep 28, 2016

From @zoffixznet

Filing for records. Fixed by jnthn++ in rakudo/rakudo@2673ca8

Smartmatching a Promise against an Enum hangs​:

m​: my $p = Promise.new; my $v = $p.vow; say $p ~~ Planned
rakudo-moar 5f9103​: OUTPUT«(timeout)»

Digging further, it leads to doing a `==` on a Promise hanging.

Which is due to it attempting to coerce itself to a Numeric over and over again.

IRC Conversation​: http://irclog.perlgeek.de/perl6/2016-09-28#i_13303005

@p6rt
Copy link
Author

p6rt commented Sep 28, 2016

From @zoffixznet

Tests added in Raku/roast@70aa3cf924

@p6rt p6rt closed this as completed Sep 28, 2016
@p6rt
Copy link
Author

p6rt commented Sep 28, 2016

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

@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