Skip to content

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

Closed

Description

@belm0

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

Activity

  1. added
    sp-ux
    staticpython
    on Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sp-uxstaticpython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions