-
Notifications
You must be signed in to change notification settings - Fork 26
Operators are not properly checked #18
Comments
Filed here: #18 [email protected] Review URL: https://chromereviews.googleplex.com/139597013
More breakage: double x = 0.0; fails with a StaticTypeError - we think x + 1 is num (as per spec) and have no place to inject a cast (without rewriting). The error message is screwy as well (double is not double). |
here's one more case: class Foo { var y = 0; Another important case is where the list doesn't have a type. Here inference can't help and we need to make sure the error given to the user is understandable. The error/warning/info should be about a dynamic cast from dynamic to int not that num is not an int. var list = []; |
int direction *= -1;
|
One more broken variant: |
These should be fixed now. |
Adding the following test - see the "should be" cases below:
The text was updated successfully, but these errors were encountered: