Skip to content

Assignment typing #6

@cf7

Description

@cf7

We have decided that we want type inference, but what about changing the type of the VarDecl later on?
Do we want to make the types of VarDecl's unchangeable, or should they be changeable if a new type is assigned to them?

var x = 10;
x = true; // should this be valid? Or should it return an assignment error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions