-
Notifications
You must be signed in to change notification settings - Fork 213
Implementation issue for Int-to-Double-conversion #20
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
Comments
Issues filed as dart-lang/sdk#34355 |
@JekCharlsonYu what remains on this feature? |
@mit-mit I have one thing that bothers me while developing Flutter applications. Are there any reasons why
when assigning variable value instead of literal value? Not working:
Working:
|
Yes, there is a reason. Dart does not have implicit conversions between class instances. A value which is an What Dart does have is the ability to treat integer literals (like |
Why dart is lacking basic features like implicit conversions ? My app getting crashed due to this basic feature |
@ParvinderjitSF Can you give a concrete example of what is happening? Preferably a MRE. |
double? doubleValue;
dynamic integerValue = 1;
doubleValue = integerValue; On flutter windows I get Flutter @ master |
@talski I can reproduce it on It seems that the web and VM behave differently in this case, which is undesirable. |
This is a several years old historical issue. For new issues, kindly file a new issue |
This issue is for tracking implementation of Int-to-Double-conversion:
https://github.com/dart-lang/language/blob/master/accepted/2.1/int-literal-as-double-value/feature-specification.md
What: Issue for implementation for Int to Double Conversion
ETA: 10/15 in Dart Repo.
The text was updated successfully, but these errors were encountered: