Skip to content

Result from Array is not checked #18

@Bistard

Description

@Bistard

I just notice that the following case is not checked by the linter:

function foo(): void {
    const arr: Result<number, string>[] = [];
    const resultFromArray = arr[0]!; // should raise an error here
}

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