Compile-time constraint for complete pattern match

前端 未结 2 1038
耶瑟儿~
耶瑟儿~ 2020-12-17 01:30

I\'m looking for the warning number for incomplete pattern matches. Anyone know what it is?

More fully, I want to make FSC.EXE return incomplete pattern matches

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 02:13

    In a .Net Standard F# project you can also achieve this by adding an element to your fsproj file like so:

    
    netstandard2.1
    FS0025
    
    

提交回复
热议问题