'Is there a way to correctly suppress an F# Type Constraint Warning?
I have a Type Constraint by design Explicitly defined for a set of functions that I intend to use Types with a corresponding List/Collection type. Even though I actually define the constraint it still gives me a warning that I cannot remove. This isn't critical, but I really so heavily on working through all the warnings and not being able to clear the list is a little annoying.
let domainValue (domain:'Domain when 'Domain :> 'ItemDomain list) //Address Type Constraint Warning ?
: Value<'ItemDomain,'Domain> = (domain, (domain |> validDomainResult |> Some)) ||> value
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
