Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/fsharp/language-reference/compiler-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<WarnOn>NNNN</WarnOn>` where `NNNN` is the relevant warning number.
(You may also use the syntax `<WarnOn>FSNNNN</WarnOn>`, for example, `<WarnOn>FS3388</WarnOn>`.)
Expand Down
Loading