Skip to content

No service error for using CompiledName on multiple values #6131

Description

@auduchinok

Attributes are applied to each value defined in bindings. It should not be allowed for CompiledName and a service error should be produced.

[<CompiledName("A")>]
let a, b = 1, 2

An error is produced during IL writing:

Error in pass2 for type Program, error: duplicate entry 'get_A' in method table

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingArea-Compiler-Checking-AttributesAttribute targets, AllowMultiple, CompiledName, custom attribute encodingBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No fields configured for Bug.

    Projects

    Status
    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions