Symbols API: property CompiledName is compiled name of accessor
Open
Area-LangService-API
Bug
Impact-Low
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
```fsharp
type T() =
[]
member x.Foo1 = 123
member x.Foo2 with set (_) = ()
```
When getting `CompiledName` for a symbol representing the `Foo1` property the result is `get_Foo1` (i.e. name of an accessor without applying `CompiledNameAttribute`) while I *think* it should be `Bar` instead (to be consistent with the attribute). There're separate symbols for accessors (when available) and they have improper names too (e.g. `get_Foo1`, `set_Foo1`).
When getting `CompiledName` for `Foo2` property the result is `set_Foo2` and I expect it to be just `Foo2`.
Contributor guide
Assessment
This issue has not been assessed yet.