Skip to content

Commit dfbaf69

Browse files
authored
Add new Fsharp optional warn: attribute invalid (#50396)
1 parent 589188f commit dfbaf69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/fsharp/language-reference/compiler-options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ The F# compiler supports several opt-in warnings:
9090
| 3570 | Ambiguous discard or shorthand | n/a | Warn when '_' is ambiguously used both as a discard and a function shorthand in the same scope. |
9191
| 3579 | Untyped string interpolation | n/a | Warn when interpolated strings contain untyped values. Typed format specifiers are recommended. |
9292
| 3582 | Function shadows union case | n/a | Warn when a function definition unintentionally shadows a union case. Use parentheses to disambiguate. |
93+
| 3878 | Attribute invalid on union case with fields | n/a | Warn when an attribute is not valid for use on union cases with fields. |
9394

9495
You can enable these warnings by using `/warnon:NNNN` or `<WarnOn>NNNN</WarnOn>` where `NNNN` is the relevant warning number.
9596
(You may also use the syntax `<WarnOn>FSNNNN</WarnOn>`, for example, `<WarnOn>FS3388</WarnOn>`.)

0 commit comments

Comments
 (0)