dotnet / dotnet/fsharp

No message reported when a ProvidedType has an ObsoleteAttribute

Open
#897 3 comments 0 reactions 0 assignees View on GitHub
Area-TypeProviders Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

When a provided method or provided property has an ObsoleteAttribute, a message is reported as expected

However when a provided type definition has an ObsoleteAttribute, no message is reported (also applies to provided events, though those are vanishingly rare)

Cause: In src\fsharp\infos.fs, CheckProvidedAttributes is called for properties and methods, but not for type definitions.

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.