Skip to content

Bug with variable declaration #508

Open
@giorgosnty

Description

@giorgosnty

Describe the bug
When we declare a variable without value, there is an error in type inference.

 result: ResultEntity;
        if(command.isSomething) {
           result = this.repo.getById(command.id).ifError();
        }
            

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