Skip to content

Internal error when typing in VS #15452

@kerams

Description

@kerams

Repro steps

type D =
    | A
    | B

    member

Expected behavior

No issues.

Actual behavior

internal error: GetInstanceMemberThisVariable: instance member did not have expected internal form
System.Exception: GetInstanceMemberThisVariable: instance member did not have expected internal form   at
[email protected](Expr e) in C:\code\fsharp\src\Compiler\Checking\CheckExpressions.fs:line 3933    at
FSharp.Compiler.CheckExpressions.TcLetrecBinding(TcFileState cenv, TcEnv envRec, Range scopem, FSharpList`1 extraGeneralizableTypars, FSharpOption`1 reqdThisValTyOpt, TcEnv envNonRec, FSharpList`1 generalizedRecBinds, FSharpList`1 preGeneralizationRecBinds, UnscopedTyparEnv tpenv, FSharpMap`2 uncheckedRecBindsTable, PreCheckingRecursiveBinding rbind) in C:\code\fsharp\src\Compiler\Checking\CheckExpressions.fs:line 11665
....

Related information

Provide any related information (optional):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions