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
Add a hint when a double is printed #2136
Comments
The issue to watch is now Issue dart-lang/sdk#1533. Added this to the 1.2 milestone. |
Removed Priority-Unassigned label. |
Added Analyzer-Hint label. |
Changed the title to: "Add a hint when a double is printed". |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
Since there are certainly false-positives here, I think this is better suited for the linter. |
dart2js and vm differ when printing doubles.
double x = 5.0;
print("x is $x") ;
vm : 5.0
dart2js : 5
Until Issue dart-lang/sdk#15881 is address, can we give the developer a hint or warning that printing a double results in differing behavior. Giving developers early warnings when code runs differently really helps to shorten the bug cycle.
The text was updated successfully, but these errors were encountered: