Compile time limit for full pattern matching

I am looking for a warning number for incomplete pattern matches. Does anyone know what this is?

More fully, I want FSC.EXE to return incomplete pattern matches as compile-time errors, rather than warnings + exceptions at runtime. Does anyone know what warning number is for this? In particular, this refers to the compiled interaction .fs / interactive FSI.fsx REPL.

Warning:

Incomplete pattern matches on this expression. For example, the value 'LaLaLa (_)' may indicate a case not covered by the pattern(s).   

How to setup:

see "--warnaserror [+ | -] []"

ref: https://msdn.microsoft.com/en-us/library/dd233171(v=vs.140).aspx

+4
source share
1 answer

use --warnaserror+:25

, , let f (Some x) = x, FS0025: . e , "" , (-).

+12

All Articles