Thanks to visit codestin.com
Credit goes to github.com

Skip to content

match return type inconsistent with 5.x semantics and actual return type #259

@joshgummersall

Description

@joshgummersall

I just noticed something strange around the top-level match method.

In version 5.1.0, the match function return type is a union of the return types of the case functions:

Screen Shot 2021-05-18 at 5 46 15 PM

In version 6.3.0, the match function return type is an array of the return types of the case functions:

Screen Shot 2021-05-18 at 5 45 37 PM

When executed, the return type appears to always be consistent with the 5.1.0 return type above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions