Skip to content

NaN quoted pattern #13033

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

Closed
nicolasstucki opened this issue Jul 8, 2021 · 1 comment · Fixed by #13064
Closed

NaN quoted pattern #13033

nicolasstucki opened this issue Jul 8, 2021 · 1 comment · Fixed by #13064
Assignees

Comments

@nicolasstucki
Copy link
Contributor

Compiler version

3.0.0

Minimized example

Does this quoted pattern work?

'{ Double.NaN } match 
  case '{ Double.NaN } =>

Expectation

It should match.

@sjrd
Copy link
Member

sjrd commented Jul 8, 2021

If you have that problem, you probably have the reverse problem for +0.0 v -0.0:

'{ 0.0 }  match
  case '{ -0.0 } =>

should not match, nor should

'{ -0.0 }  match
  case '{ 0.0 } =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants