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

No sink warnings when Inf or NaN is in sink context ( ∞ ) #4897

Closed
p6rt opened this issue Dec 20, 2015 · 4 comments
Closed

No sink warnings when Inf or NaN is in sink context ( ∞ ) #4897

p6rt opened this issue Dec 20, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 20, 2015

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

Searchable as RT126973$

@p6rt
Copy link
Author

p6rt commented Dec 20, 2015

From @AlexDaniel

Code​:
�

Result​:
(no output)

Same thing with NaN and Inf. I was expecting a warning.

Something like this​:

Code​:
42

Result​:
WARNINGS for -e​:
Useless use of constant integer 42 in sink context (line 1)

@p6rt
Copy link
Author

p6rt commented Aug 25, 2016

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 13, 2018

From @zoffixznet

On Sat, 19 Dec 2015 20​:29​:14 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
�

Result​:
(no output)

Same thing with NaN and Inf. I was expecting a warning.

Something like this​:

Code​:
42

Result​:
WARNINGS for -e​:
Useless use of constant integer 42 in sink context (line 1)

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@e9c9dc4695495ac
Test​: Raku/roast@6869312c030f1df3a

@p6rt p6rt closed this as completed Jan 13, 2018
@p6rt
Copy link
Author

p6rt commented Jan 13, 2018

@zoffixznet - Status changed from 'open' 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