-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Description
If an declared as instance member of a union with [<CompilationRepresentation(CompilationRepresentationFlags.UseNullAsTrueValue)>] (for example Option.IsNone) is exposed as an FSharpMemberOrFunctionOrValue value, it still has IsInstanceMember = true although it is static in compiled form. Is this intended? Currently there is no property exposed that could find if a member is compiled as instance or static.
A related issue, which probably could be classified as a bug: whenever a call to Option.IsNone is in an expression (traversed by BasicPatterns active patterns), it is wrapped in an Application with a unit argument unnecessarily.