dotnet / dotnet/fsharp

Missing attributes information on `setter` of a property (in `FSharpMemberOrFunctionOrValue` type)

Open
#18,157 10 comments 0 reactions 0 assignees View on GitHub
Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Hello,

I am not sure how to report this bug because this is related to the internals of F# Compiler itself, and happening inside of Fable transformation.

In Fable, we want to erase types and properties decorated with `[]`.

For example, this code should emit nothing.

```fs
[]
type internal LanguageInjectionAttribute() =
inherit Attribute()

[]
member val Prefix = "" with get, set
```

However, currently it does not seems possible to do it for the `setter` because it is missing the `[]` attribute information:

![Image](https://github.com/user-attachments/assets/5acc1adb-d3c6-4718-bbf2-e17e1f0604ed)

Please tell me, if I can do anything to reword my issue or help you identify the cause of this problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.