Skip to content

Fix struct layout error when nullable enabled:#34128

Merged
chsienki merged 2 commits intodotnet:masterfrom
chsienki:struct_cycle_nullable
Mar 15, 2019
Merged

Fix struct layout error when nullable enabled:#34128
chsienki merged 2 commits intodotnet:masterfrom
chsienki:struct_cycle_nullable

Conversation

@chsienki
Copy link
Copy Markdown
Member

  • Change type comparison to ignore nullable
  • Add a test
  • Fix an existing test

Fixes #32934

- Change type comparison to ignore nullable
- Add a test
- Fix an existing test
@chsienki chsienki added this to the 16.1.P1 milestone Mar 14, 2019
@chsienki chsienki marked this pull request as ready for review March 14, 2019 23:37
@chsienki chsienki requested a review from a team as a code owner March 14, 2019 23:37
@chsienki
Copy link
Copy Markdown
Member Author

@dotnet/roslyn-compiler for review please

{
var source =
@"
#pragma warning disable 0169 // suppress field never used warning
Copy link
Copy Markdown
Member

@jcouv jcouv Mar 14, 2019

Choose a reason for hiding this comment

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

nit: you could also eliminate the warning by making the field public #Resolved

Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 1)

@jcouv jcouv self-assigned this Mar 15, 2019
@chsienki chsienki merged commit 087195e into dotnet:master Mar 15, 2019
333fred added a commit to 333fred/roslyn that referenced this pull request Mar 19, 2019
* dotnet/master: (345 commits)
  Update indexers based on analyzer receiver (dotnet#34134)
  Skip test DecimalBinaryOp_03 (dotnet#34199)
  Remove earlier nullable documentation (dotnet#34153)
  Rewrite FindReferencesTests as theories
  Apply a hang mitigating timeout to ExecuteCommand
  Warn on __refvalue null dereference: (dotnet#34135)
  Update dependencies from https://github.com/dotnet/arcade build 20190312.7 (dotnet#34112)
  Update vs branch for 16.1
  Fix struct layout error when nullable enabled: (dotnet#34128)
  Remove IgnoreInsignificantNullableModifiersDifference (dotnet#34096)
  Add the correct nullable annotations to generated iterator code (dotnet#33986)
  Move Rename implementation to new fully loaded document API.
  handle encapsulate field command
  change the way extract method handle partial load
  handle orangize document
  Add back Go to definition method.
  Revert "Move Go to definition to new fully loaded document API."
  Revert "Move Find references implementation to new fully loaded document API."
  Move Find references implementation to new fully loaded document API.
  Track nullable state across boxing conversions (dotnet#34087)
  ...
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.

3 participants