Skip to content

#6928 - Removed SByte and Byte from default case requirement and added check for complete match. - #7445

Merged
cartermp merged 2 commits into
dotnet:masterfrom
gdziadkiewicz:feature/Exhaustive_pattern_matches_on_numeric_values_yield_compiler_warning_#6928
Aug 29, 2019
Merged

cartermp merged 2 commits into
dotnet:masterfrom
gdziadkiewicz:feature/Exhaustive_pattern_matches_on_numeric_values_yield_compiler_warning_#6928

Conversation

@gdziadkiewicz

@gdziadkiewicz gdziadkiewicz commented Aug 24, 2019

Copy link
Copy Markdown
Contributor

Fix #6928

@cartermp cartermp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a suggested change in the test but otherwise this looks good

Comment thread tests/fsharp/Compiler/Warnings/PatternMatchingWarningTests.fs Outdated
@dsyme

dsyme commented Aug 28, 2019

Copy link
Copy Markdown
Contributor

That was easier to fix than I realized :)

@dsyme dsyme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@cartermp

Copy link
Copy Markdown
Contributor

Thanks @gdziadkiewicz!

@cartermp
cartermp merged commit 783ae80 into dotnet:master Aug 29, 2019
@gdziadkiewicz
gdziadkiewicz deleted the feature/Exhaustive_pattern_matches_on_numeric_values_yield_compiler_warning_#6928 branch September 3, 2019 21:53
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
…d added check for complete match. (dotnet#7445)

* dotnet#6928 - Removed SByte and Byte from default case requirement and added check for complete match.

* Upgrade new tests (dotnet#6928)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exhaustive pattern matches on numeric values yield compiler warning

3 participants