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

Clarification re the new feature "Implicit index access" #44907

Open
RexJaeschke opened this issue Feb 15, 2025 · 0 comments
Open

Clarification re the new feature "Implicit index access" #44907

RexJaeschke opened this issue Feb 15, 2025 · 0 comments
Assignees
Labels
dotnet-csharp/svc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. whats-new/subsvc

Comments

@RexJaeschke
Copy link

RexJaeschke commented Feb 15, 2025

Type of issue

Missing information

Description

I'm writing tests for this new feature for the Ecma C# standard, and have found that it's not just ^ that is now accepted in this context, but any expression of type System.Index, such as [(Index)0] and [idx] given Index idx = 0;.

It might also be worth a note saying that this doesn't work for multidimensional arrays, 'cos Index (and Range) still cannot be used in that context anyway.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-13

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/whats-new/csharp-13.md

Document Version Independent Id

587ed47f-f532-e018-9b0d-6ee76afd20e4

Article author

@BillWagner

Metadata

  • ID: c36588d0-6bdf-1740-220c-10b20bb88730
  • PlatformId: 33fc7d4f-a082-08f5-22e8-0c57d552ad33
  • Service: dotnet-csharp
  • Sub-service: whats-new

Related Issues

@dotnet-policy-service dotnet-policy-service bot added the ⌚ Not Triaged Not triaged label Feb 15, 2025
@BillWagner BillWagner self-assigned this Feb 18, 2025
@BillWagner BillWagner removed the ⌚ Not Triaged Not triaged label Feb 18, 2025
@BillWagner BillWagner added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Feb 18, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 18, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-csharp/svc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. whats-new/subsvc
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants