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

Collection Expressions Documentation Lists Convertion To Inline Array #38916

Open
1 task done
MrKWatkins opened this issue Dec 29, 2023 · 2 comments
Open
1 task done
Labels
dotnet-csharp/svc lang-reference/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Comments

@MrKWatkins
Copy link

MrKWatkins commented Dec 29, 2023

Type of issue

Missing information

Description

The conversions section of the collection expressions docs (https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions#conversions) states that conversions to inline arrays are supported. However this does not seem to be the case; I get CS9174 when I try, and dotnet/roslyn#69236 / dotnet/roslyn#68927 imply that support for conversion to inline arrays didn't make it into C#12. I'm therefore assuming the docs are incorrect?

Target framework

  • .NET Core
dotnet --info output or About VS info
.NET SDK:
 Version:           8.0.100
 Commit:            57efcf1350
 Workload version:  8.0.100-manifests.2d90560f

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  23.10
 OS Platform: Linux
 RID:         ubuntu.23.10-x64
 Base Path:   /usr/lib/dotnet/sdk/8.0.100/

.NET workloads installed:
 Workload version: 8.0.100-manifests.2d90560f
There are no installed workloads to display.

Host:
  Version:      8.0.0
  Architecture: x64
  Commit:       5535e31a71

.NET SDKs installed:
  6.0.125 [/usr/lib/dotnet/sdk]
  7.0.114 [/usr/lib/dotnet/sdk]
  8.0.100 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.25 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.14 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.25 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.14 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions#conversions

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/operators/collection-expressions.md

Document Version Independent Id

49349466-94fd-00b5-93da-e4200d9f9ec8

Article author

@BillWagner

  • ID: 63733f9f-0896-c948-1a7e-58fb428c11c0
  • Service: dotnet-csharp
  • Sub-service: lang-reference
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Dec 29, 2023
@PavelCibulka
Copy link

I hope this will get attention. Working with "InlineArray" without collection expresion is very annoying.

@kg kg added the doc-bug label Jan 25, 2024
@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Jan 25, 2024
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Sep 5, 2024
@adegeo
Copy link
Contributor

adegeo commented Sep 5, 2024

@BillWagner This one slipped through the cracks. I updated it with the latest issue template formats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-csharp/svc lang-reference/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Projects
None yet
Development

No branches or pull requests

6 participants