From a9a3dc548f414cdc74b59b6e70eed689330279ca Mon Sep 17 00:00:00 2001 From: felisevan Date: Tue, 9 Dec 2025 03:05:43 +0100 Subject: [PATCH] Add new Fsharp optional warn: attribute invalid --- docs/fsharp/language-reference/compiler-options.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/fsharp/language-reference/compiler-options.md b/docs/fsharp/language-reference/compiler-options.md index c13105387d159..02c3baa7c0407 100644 --- a/docs/fsharp/language-reference/compiler-options.md +++ b/docs/fsharp/language-reference/compiler-options.md @@ -90,6 +90,7 @@ The F# compiler supports several opt-in warnings: | 3570 | Ambiguous discard or shorthand | n/a | Warn when '_' is ambiguously used both as a discard and a function shorthand in the same scope. | | 3579 | Untyped string interpolation | n/a | Warn when interpolated strings contain untyped values. Typed format specifiers are recommended. | | 3582 | Function shadows union case | n/a | Warn when a function definition unintentionally shadows a union case. Use parentheses to disambiguate. | +| 3878 | Attribute invalid on union case with fields | n/a | Warn when an attribute is not valid for use on union cases with fields. | You can enable these warnings by using `/warnon:NNNN` or `NNNN` where `NNNN` is the relevant warning number. (You may also use the syntax `FSNNNN`, for example, `FS3388`.)