Skip to content

Illogical error message when asking using Seq.item 0 on an Empty Seq #1644

@liboz

Description

@liboz

@cloudRoutine

Repro steps

Build master and then open FSI and type
Seq.item 0 (Array.zeroCreate<int> 0)

Expected behavior

The error message should say seq was short by 1 element.

Actual behavior

The error message is seq was short by 0 elements, which makes no sense since that should mean the sequence had enough elements.

Known workarounds

None

Related information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LibraryIssues for FSharp.Core not covered elsewhereBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions