Skip to content

Invalid type abbreviation delcaration allowed #6133

@cartermp

Description

@cartermp
type Oops = Span<int> * Span<int>

let f (x: Oops) = ()

let failsAsIntended (x: Span<int> * Span<int>) = ()

failsAsIntended will fail to compile, since you can't tuple a Span. But f and the Oops declaration do compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions