VM const evaluation fails to recognize 2 == 2.0
.
#42946
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
See: https://stackoverflow.com/questions/63261894/int-and-double-equality-with-const-in-dart
Example:
This should print
true
, and it does so for dart2js (according to dartpad), so it seems to be a VM issue.Tested with the following VMs:
on Windows (Chocolatey installs).
The text was updated successfully, but these errors were encountered: