Skip to content

Missing a warning about overly broad return type declarations #1577

@UweOhse

Description

@UweOhse

Description

I expected a warning in this case, but didn't get one:

function test(): string|false
{
    return 'some';
}

Playground Link

https://mago.carthage.software/playground#019d5d00-a37a-436c-1904-c12486e59f5b

Reproduction

No response

Environment

mago current as of this morning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeeds triaget-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions