Skip to content

Dont try and check tuple conversions in error cases:#36188

Merged
chsienki merged 2 commits intodotnet:masterfrom
chsienki:typeless_tuple_assert_fix
Jun 12, 2019
Merged

Dont try and check tuple conversions in error cases:#36188
chsienki merged 2 commits intodotnet:masterfrom
chsienki:typeless_tuple_assert_fix

Conversation

@chsienki
Copy link
Copy Markdown
Member

@chsienki chsienki commented Jun 5, 2019

  • When checking an identity converison, also check for a bound tuple if the type isn't a tuple (as we might have a bound tuple with an error type)
  • When checking a tuple conversion, don't call GenerateConversion in the error case, as we don't have a target type to generate against
  • Update tests

Fixes #35157

- When checking an identity converison, also check for a bound tuple if the type isn't a tuple as we might have a bound tuple with an error type
- When checking a tuple conversion, don't GenerateConversion in the error case as we don't have a target type to generate against
- Update tests
@chsienki chsienki marked this pull request as ready for review June 5, 2019 22:52
@chsienki chsienki requested review from a team as code owners June 5, 2019 22:52
@chsienki
Copy link
Copy Markdown
Member Author

chsienki commented Jun 5, 2019

@dotnet/roslyn-compiler for review please

@jcouv jcouv added this to the 16.2.P3 milestone Jun 5, 2019
@chsienki
Copy link
Copy Markdown
Member Author

chsienki commented Jun 7, 2019

@dotnet/roslyn-compiler for a second review please.

@jinujoseph jinujoseph modified the milestones: 16.2.P3, 16.2 Jun 9, 2019
@chsienki chsienki merged commit b59f625 into dotnet:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typeless tuples hit debug assert in nullable walker

5 participants