Skip to content

Fix Value/Ref checks for pattern Index/Range#35004

Merged
agocke merged 2 commits intodotnet:masterfrom
agocke:range-index-span
Apr 16, 2019
Merged

Fix Value/Ref checks for pattern Index/Range#35004
agocke merged 2 commits intodotnet:masterfrom
agocke:range-index-span

Conversation

@agocke
Copy link
Member

@agocke agocke commented Apr 16, 2019

When I implemented the Index and Range pattern support I forgot to
update the ref and ref-like checking behavior, which caused the
expressions to have the wrong behavior for certain operations and
potentially crash the compiler.

This change adds tests for ref returns and ref-like lifetimes and
implements the appropriate behavior.

When I implemented the Index and Range pattern support I forgot to
update the ref and ref-like checking behavior, which caused the
expressions to have the wrong behavior for certain operations and
potentially crash the compiler.

This change adds tests for ref returns and ref-like lifetimes and
implements the appropriate behavior.
@agocke agocke force-pushed the range-index-span branch from 7ff523d to 73611f0 Compare April 16, 2019 08:09
@agocke agocke marked this pull request as ready for review April 16, 2019 08:17
@agocke agocke requested a review from a team as a code owner April 16, 2019 08:17
@agocke agocke requested a review from VSadov April 16, 2019 08:17
Copy link
Member

@chsienki chsienki left a comment

Choose a reason for hiding this comment

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

:shipit:

LGTM, Minus some (non blocking) nits.

Copy link
Member

@gafter gafter left a comment

Choose a reason for hiding this comment

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

:shipit:

@agocke agocke merged commit 2c1bb6a into dotnet:master Apr 16, 2019
@agocke agocke deleted the range-index-span branch April 16, 2019 23:55
333fred added a commit to 333fred/roslyn that referenced this pull request Apr 17, 2019
* dotnet/master: (495 commits)
  Roslyn Installer: Stop processes that block VSIX installation. (dotnet#34886)
  Remove unused helper BeginInvokeOnUIThread
  Apply a hang mitigating timeout to InvokeOnUIThread
  Apply a hang mitigating timeout in RestoreNuGetPackages
  Apply a hang mitigating timeout to WaitForApplicationIdle
  Fix Value/Ref checks for pattern Index/Range (dotnet#35004)
  Fix assert in remove unused member analyzer
  Treat unconstrained type parameters declared in `#nullable disable` context as having an oblivious nullability in case they are substituted with a reference type. (dotnet#34797)
  Add symbol name to tests. Fix to be the correct name emitted
  PR feedback
  Improve IDE0052 diagnostic message for properties with used setter but unused getter
  Use original definition symbol for fetching control flow graph of generic local functions.
  Properly treat ambiguous explicit interface implementations (dotnet#34584)
  Remove the dependence between the order in NullableAnnotation and metadata attribute values (dotnet#34909)
  Fix warning level test.
  Fix bootstrap on Linux/Mac (dotnet#34978)
  disable completion for immediate window commands (dotnet#32631)
  Updated PreviewWarning color
  Implement design changes for "pattern" Index/Range indexers  (dotnet#34897)
  Add IVTs to 16.1 version of RemoteLS
  ...
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