-
Notifications
You must be signed in to change notification settings - Fork 854
Open
Labels
AI-thinks-issue-fixedArea-Compiler-SRTPbugs in SRTP inference, resolution, witness passing, code genbugs in SRTP inference, resolution, witness passing, code genBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Description
Running on 5.0 preview 8, probably fixed by #9633
type DuCaseName<'T> =
static member ToCaseName<'t, 'u>(value: 't) =
failwith "just here to provide delayed resolution"
static member ToCaseName(value: 'T) =
match FSharp.Reflection.FSharpValue.GetUnionFields(value, typeof<'T>) with
| case, _ -> case.Name
static member inline Invoke(value: 'a) =
let inline call (other: ^M, value: ^I) = ((^M or ^I) : (static member ToCaseName: ^I -> string) value)
call (Unchecked.defaultof<DuCaseName<'T>>, value)error FS0073: internal error: Undefined or unsolved type variable: '_?2272016
static member ToCaseName<'t, 'u>(value: 't) =
failwith "just here to provide delayed resolution"
The phantom 'u seems to be the culprit in this instance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AI-thinks-issue-fixedArea-Compiler-SRTPbugs in SRTP inference, resolution, witness passing, code genbugs in SRTP inference, resolution, witness passing, code genBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Type
Projects
Status
New