Skip to content

A wrong type is reported in a type mismatch error #18849

Description

@auduchinok

Consider this code:

let a, b: int = ()

The error is produced on the unit expression, but it says that the type is int:
Image

Error FS0001 : This expression was expected to have type
    ''a * 'b'    
but here has type
    'int'

This may be happening due to some expressions rewriting during the analysis.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions