Skip to content

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

@auduchinok

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions