facebookincubator / cinder

Cinder is Meta's internal performance-oriented production version of CPython.
https://trycinder.com
Other
3.43k stars 122 forks source link

"float cannot be assigned to double" when casting float var with double() #27

Closed belm0 closed 3 years ago

belm0 commented 3 years ago

compile time error with "python -m compiler --static", seen on 5bd8c57

from __static__ import double, int32

double(1.2)  # OK

x = 1.2
double(x)  # type mismatch: float cannot be assigned to double

y = 5
int32(y)  # OK