Skip to content

Wrong actual type is captured in diagnostic #18905

@auduchinok

Description

@auduchinok

In the code below the expected type is int and the actual is string:

module Module

type T() =
    static member P1 = T.P2 + 1
    static member P2 = ""
Image

However, the diagnostic data captures the opposite:

Image

This seems to be a regression in #18851. cc @DedSec256

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions