Skip to content

No service error for using CompiledName on multiple values #6131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
auduchinok opened this issue Jan 18, 2019 · 0 comments
Open

No service error for using CompiledName on multiple values #6131

auduchinok opened this issue Jan 18, 2019 · 0 comments
Assignees
Labels
Area-Compiler-Checking Type checking, attributes and all aspects of logic checking Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone

Comments

@auduchinok
Copy link
Member

auduchinok commented Jan 18, 2019

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
@cartermp cartermp added this to the 16.0 milestone Jan 18, 2019
@cartermp cartermp modified the milestones: 16.0, 16.1 Feb 21, 2019
@cartermp cartermp modified the milestones: 16.1, 16.2 Apr 23, 2019
@cartermp cartermp modified the milestones: 16.2, Backlog Apr 30, 2019
@dsyme dsyme added the Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. label Aug 26, 2020
@dsyme dsyme added Area-Compiler-Checking Type checking, attributes and all aspects of logic checking and removed Area-Compiler labels Apr 1, 2022
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Jun 17, 2022
@edgarfgp edgarfgp self-assigned this Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compiler-Checking Type checking, attributes and all aspects of logic checking Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
Status: New
Development

No branches or pull requests

4 participants