You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pattern discard not allowed for union case that takes no data (#14055)
* Pattern discard not allowed for union case that takes no data
* Add test for grouped patterns discard
* Remove unnecesary use of wildcare across the compiler
* Format code
* Remove unnecesary wildcard on tests
* Update the warning logic
* Add warning behing preview flag
* More testing
* Add single-case unions when using them as a deconstruct syntax in functions
* Update FSComp.txt
Co-authored-by: Tomas Grosup <[email protected]>
3354,tcNotAFunctionButIndexerNamedIndexingNotYetEnabled,"This value supports indexing, e.g. '%s.[index]'. The syntax '%s[index]' requires /langversion:preview. See https://aka.ms/fsharp-index-notation."
1559
1560
3354,tcNotAFunctionButIndexerIndexingNotYetEnabled,"This expression supports indexing, e.g. 'expr.[index]'. The syntax 'expr[index]' requires /langversion:preview. See https://aka.ms/fsharp-index-notation."
@@ -1654,3 +1655,4 @@ reprStateMachineInvalidForm,"The state machine has an unexpected form"
1654
1655
3545,tcMissingRequiredMembers,"The following required properties have to be initalized:%s"
0 commit comments