Skip to content

type 'int' is not a subtype of type 'double?' #56913

@dhilshana

Description

@dhilshana

This usually happens when an API response or data processing step returns an int value, but my model or function is expecting a double?.

When a double variable is assigned an int value, implicit conversion from int to double is possible. However, the mentioned error occurs in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-as-intendedClosed as the reported issue is expected behaviortype-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions