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

It is no longer possible to return -Inf from the signature (sub foo(--> -Inf) {}) #5915

Closed
p6rt opened this issue Dec 27, 2016 · 4 comments
Closed
Labels
regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Dec 27, 2016

Migrated from rt.perl.org#130412 (status was 'rejected')

Searchable as RT130412$

@p6rt
Copy link
Author

p6rt commented Dec 27, 2016

From @AlexDaniel

Code​:
sub foo ( --> -Inf) { }; say foo

Result(2016.11)​:
-Inf

Result(HEAD)​:
===SORRY!=== Error while compiling -e
Malformed return value
at -e​:1
------> sub foo ( -->⏏ -Inf) { }; say foo

Bisectable points to rakudo/rakudo@ae614f9

@p6rt
Copy link
Author

p6rt commented Dec 27, 2016

From @zoffixznet

On Tue, 27 Dec 2016 08​:24​:06 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
sub foo ( --> -Inf) { }; say foo

Result(2016.11)​:
-Inf

Result(HEAD)​:
===SORRY!=== Error while compiling -e
Malformed return value
at -e​:1
------> sub foo ( -->⏏ -Inf) { }; say foo

Bisectable points to
rakudo/rakudo@ae614f9

Closing this as it's a dupe of #​130249. The only reason it ever worked is due to another bug that treated -Inf as a single term.

@p6rt
Copy link
Author

p6rt commented Dec 27, 2016

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

@p6rt
Copy link
Author

p6rt commented Dec 27, 2016

@zoffixznet - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Dec 27, 2016
@p6rt p6rt added the regression Issue did not exist previously label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant