Skip to content

Value compiled as function doesn't get compilation mapping attributes #19428

@auduchinok

Description

@auduchinok

The following module value gets compiled to a method due to its generic type:

let l = []

The compiled member is missing the expected [CompilationMapping(SourceConstructFlags.Value)] attribute:

public static FSharpList<a> l<a>() => FSharpList<a>.get_Empty();

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions