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

Lit.{Float,Double}: disallow NaN and Infinity #3596

Merged
merged 1 commit into from Feb 27, 2024

Conversation

kitbellew
Copy link
Contributor

@kitbellew kitbellew commented Feb 27, 2024

These values cannot be specified using the scala numeric literal format and only using predefined constants like Double.PositiveInfinity and Float.NaN.

However, these constants would not be parsed as Lit.Float anyway, and instead as Term.Select(...).

@kitbellew kitbellew force-pushed the sbt299_11 branch 5 times, most recently from 7f14018 to d079536 Compare February 27, 2024 16:48
These values cannot be specified using the scala numeric literal format
and only using predefined constants like `Double.PositiveInfinity` and
`Float.NaN`.

However, these constants would not be parsed as `Lit.Float` anyway,
instead of `Term.Select(...)`.
@kitbellew kitbellew merged commit e953803 into scalameta:main Feb 27, 2024
24 checks passed
@kitbellew kitbellew deleted the sbt299_11 branch February 27, 2024 20:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants