mdbetancourt / eslint-plugin-neverthrow

MIT License
44 stars 4 forks source link

Result from Array is not checked #18

Open Bistard opened 10 months ago

Bistard commented 10 months ago

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
}