Skip to content

Add C# 11 errors for ref safety violations #49598

@BillWagner

Description

@BillWagner

Type of issue

Missing information

Description

Many errors and warnings were added for ref safety violations in C# 11:

CS8986, CS8987, CS9061, CS9062, CS9063, CS9065, CS9066, CS9072, CS9075, CS9076, CS9077, CS9078, CS9079

In addition, the following warnings were added:

CS9073, CS9074, CS9080, CS9081, CS9082, CS9083, CS9084, CS9085, CS9086, CS9087, CS9088, CS9089, CS9090, CS9091, CS9092, CS9093, CS9094, CS9095, CS9096, CS9097

This might make the current file too large, so consider a new article, split from reference variables for ref safety violations.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/ref-modifiers-errors

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-messages/ref-modifiers-errors.md

Document Version Independent Id

86dac3f5-7619-4f97-ca2b-db28981575ac

Platform Id

d887d4bb-1797-204d-7da3-2f7f2fd5db25

Article author

@BillWagner

Metadata

  • ID: ccf775ba-3e98-dae4-cdbb-fc910e0b011c
  • PlatformId: d887d4bb-1797-204d-7da3-2f7f2fd5db25
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Related Issues


Associated WorkItem - 506006

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-csharp/svcerrors-warnings/subsvcokr-curationOKR: Curate content to remove outdated recommendationsokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions