Is there a way to get the F # compiler to handle incomplete patterns as errors?

Everything is written in the title, in fact - is there a parameter to instruct the F # compiler to report incomplete template matches as errors?

By default, this generates warnings, but without a specific error code, so I don’t know how to apply the --warnaserror parameter.

When adding a case to a discriminated connection, for example, it would be useful to ensure that the use of this DU has not been missed. Admittedly, compiler warnings can be used for this purpose, but it would be involuntary to ignore errors.

+5
source share

Source: https://habr.com/ru/post/1245692/


All Articles