Skip to content

bug: mago should report mismatch between @return and actual return type #838

@Bleksak

Description

@Bleksak

Description

the provided code crashes at runtime, but mago thinks it's fine because of the @return annotation

Playground Link

https://mago.carthage.software/playground#019b6186-6ed4-ffb8-e3ad-1878cdd6185d

Reproduction

No response

Environment

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugAn issue causing unintended or problematic behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions