Gaps in XML Documentation validity checking around pattern-parameters and constructor args #10809
Labels
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
It is possible to write legal code that fails XML documentation validation
Repro steps
given the following script saved as
script.fsx
and the fsi in the .net 5.0.100 SDK, the command
dotnet fsi --warnon:3390 script.fsx
results in two spurious warnings:One for the mismatched parameter in the pattern-matched function argument, and one for the constructor parameter.
Expected behavior
No errors are printed.
Actual behavior
The above warnings are printed.
Known workarounds
The first error can be worked around by performing the extraction inside the function body.
The second error cannot be worked around in code, to my knowledge.
Both can be mitigated by turning 3390 off for the file, though this is a scattershot approach in my view.
Related information
Provide any related information (optional):
The text was updated successfully, but these errors were encountered: