Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block constant and relational pattern matching on types inheriting from or constrained to INumberBase<T> #62653

Merged
merged 11 commits into from
Jul 25, 2022

Conversation

333fred
Copy link
Member

@333fred 333fred commented Jul 14, 2022

To ensure we have a good user experience and avoid any potential breaking changes later, we block this scenario for types that don't have known conversions from patterns.

Spec change: dotnet/csharplang#6273.

…om or constrained to INumberBase<T>

To ensure we have a good user experience and avoid any potential breaking changes later, we block this scenario for types that don't have known conversions from patterns.

Spec change: dotnet/csharplang#6273.
@333fred 333fred requested a review from a team as a code owner July 14, 2022 20:48
* upstream/main:
  Bind IterationErrorVariable to a natural type for error recovery (dotnet#62601)
  [main] Update dependencies from dotnet/source-build-externals (dotnet#61173)
  Cleanup: remove VisualStudioWorkspaceImpl.TryGetContainedDocument (dotnet#62616)
  EnC: A couple of small fixes (dotnet#62454)
  Report error for ref field declared in type other than ref struct (dotnet#62615)
  Store helpful info needed by incremental-generation on syntax-tree itself (dotnet#62551)
@333fred
Copy link
Member Author

333fred commented Jul 14, 2022

@dotnet/roslyn-compiler for reviews. Edit: I found a couple of bugs. Marking draft while I fix them.

@333fred 333fred marked this pull request as draft July 14, 2022 21:00
@333fred 333fred marked this pull request as ready for review July 14, 2022 21:29
@333fred
Copy link
Member Author

333fred commented Jul 14, 2022

@dotnet/roslyn-compiler bugs fixed, this is now ready for review.

* upstream/main: (40 commits)
  Revert "Generalize RoamingProfileStorageLocation to ClientSettingsStorageLocation (dotnet#62684)"
  Revert "Update SymReader to the latest version (dotnet#62695)"
  Apply changes directly to text buffer - take 2 (dotnet#62617)
  Allow diagnostic tagging to use either push or pull diagnostics
  Tests test and more tests
  Fix new rename showing overloads when not applicable (dotnet#62559)
  Add stronger type safety
  Add support for resolving contextual error types
  Pass LineFormatting options into OmniSharpCodeAction options
  Initial approach to supporting contextual types
  Update dependencies from https://github.com/dotnet/arcade build 20220715.4 (dotnet#62704)
  Handle diff3 conflict markers (dotnet#62391)
  Update SymReader to the latest version (dotnet#62695)
  Generalize RoamingProfileStorageLocation to ClientSettingsStorageLocation (dotnet#62684)
  Add IWorkspaceProjectContextFactory F# wappers (dotnet#62646)
  Use OmniSharp LineFormatting fallback options in more places.
  Remove dependency on Microsoft.VisualStudio.RemoteControl assembly from Features (dotnet#62655)
  Add array initialization optimization (dotnet#62392)
  [main] Update dependencies from dotnet/arcade (dotnet#62597)
  Keep selection on rename invocation (dotnet#62654)
  ...
@333fred
Copy link
Member Author

333fred commented Jul 18, 2022

@dotnet/roslyn-compiler @jcouv for reviews please.

@333fred
Copy link
Member Author

333fred commented Jul 19, 2022

Copy link
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 6)

@jcouv jcouv self-assigned this Jul 19, 2022
@333fred
Copy link
Member Author

333fred commented Jul 19, 2022

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

@AlekseyTs
Copy link
Contributor

Done with review pass (commit 6)

* upstream/main: (66 commits)
  Merge release/dev17.3 to main (dotnet#62573)
  Fix
  Find the right symbol when following type forwards (dotnet#62406)
  Remove unused parameter (dotnet#62685)
  Fix NRE in nullable walker (dotnet#62773)
  Delete obsolete internal options (dotnet#62746)
  Optimize away unchecked conversions between nint and nuint types. (dotnet#62774)
  Delete
  Inline members
  Clean up global options usage in tests (dotnet#62692)
  Update dependencies from https://github.com/dotnet/source-build-externals build 20220719.2 (dotnet#62787)
  Update src/Workspaces/Remote/ServiceHub/Services/Renamer/RemoteRenamerService.cs
  No need to roundtrip symbol
  Unused variable
  formatting
  Get document properly
  Lint
  Simplify
  Remove unnecessary callbacks
  Add telemetry
  ...
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 9)

* upstream/main: (53 commits)
  Remove 'mangleName' parameter in PENamedTypeSymbolNonGeneric (dotnet#62813)
  Produce errors for 'partial file record' (dotnet#62686)
  [EnC] Allow renaming methods, properties, events etc. (dotnet#62364)
  Update AbstractFileHeaderDiagnosticAnalyzer.cs
  Rename file
  Make static
  Move tests
  Refactor
  Support ref field assignment in object initializers (dotnet#62584)
  Fix cref tags on generated VB's SyntaxFactory (dotnet#62578)
  Simplify
  Simplify
  Simplify
  Simplify
  Simplify
  Simplify
  Simplify
  Simplify
  Move helper methods
  Remove serialization
  ...
@333fred 333fred enabled auto-merge (squash) July 21, 2022 17:43
@333fred
Copy link
Member Author

333fred commented Jul 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

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.

None yet

4 participants