f# - Compile-time constraint for complete pattern match -


i'm looking warning number incomplete pattern matches. know is?

more fully, want make fsc.exe return incomplete pattern matches compile-time errors rather warnings + run-time exceptions. know warning number is? specifically, relates compiled .fs / interactive fsi .fsx repl interaction.

the warning:

incomplete pattern matches on expression. example, value 'lalala (_)' may indicate case not covered pattern(s).    

how customise:

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

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

use --warnaserror+:25

to know 1 produced myself warning using let f (some x) = x gaves me warning fs0025: incomplete pattern matches on expression. e xample, value 'none' may indicate case not covered pattern(s).


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -