Skip to content

Problems around UseNullAsTrueValue #414

@Jand42

Description

@Jand42

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions