Skip to content

Misleading type mismatch warning for Number #90

@bioball

Description

@bioball

This snippet produces an incorrect type mismatch warning:

bar: Number

foo: Int|Float = bar

We can consider Number sealed; the only two possible subclasses are Int and Float.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions