Skip to content

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented May 23, 2022

This fixes #13175

Added a systematic test matrix

@dsyme dsyme changed the title Tentative fix for pattern matching [WIP] fix for subtype pattern matching May 23, 2022
@dsyme dsyme changed the title [WIP] fix for subtype pattern matching Fix for subtype pattern matching May 23, 2022
@dsyme
Copy link
Contributor Author

dsyme commented May 23, 2022

@vzarytovskii Could you take a careful look at this (and the subsequent 6 functions)

let computeWhatSuccessfulTypeTestImpliesAboutNullTest g tgtTy1 =
and see if there are obvious test cases/matrix that we should add? I think I need more eyes on the test matrix for this.

@dsyme
Copy link
Contributor Author

dsyme commented May 23, 2022

and see if there are obvious test cases/matrix that we should add? I think I need more eyes on the test matrix for this.

We can merge this and add the tests separately

@vzarytovskii
Copy link
Member

and see if there are obvious test cases/matrix that we should add? I think I need more eyes on the test matrix for this.

We can merge this and add the tests separately

Agree, we should merge this one, while I'm looking at some more potential tests.
What shall we do with servicing? @KevinRansom @brettfo

@dsyme
Copy link
Contributor Author

dsyme commented May 23, 2022

What shall we do with servicing? @KevinRansom @brettfo

This unfortunately needs to be a priority for all servicable branches that have the problem...

@dsyme dsyme merged commit c95d6aa into dotnet:main May 23, 2022
vzarytovskii pushed a commit to vzarytovskii/fsharp that referenced this pull request May 24, 2022
* tentative fix for pattern matching logic

* add test matrix
vzarytovskii added a commit that referenced this pull request May 24, 2022
* tentative fix for pattern matching logic

* add test matrix

Co-authored-by: Don Syme <dsyme@users.noreply.github.com>
@vzarytovskii
Copy link
Member

dev17.2 PR is here - #13190

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.

Regression in dotnet SDK 6.0.300: optimizing match with type checks

2 participants