Skip to content

An extra reason to get error CS1009 #40741

@RexJaeschke

Description

@RexJaeschke

Type of issue

Missing information

Description

Here's an extra case to add to the example:

string s = "\U00110000";

The escape sequence is well-formed; however, it represents an out-of-range value. Specifically, Unicode code points above U+10FFFF are invalid and are not supported.

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1009?f1url=%3FappId%3Droslyn%26k%3Dk(CS1009)

Content source URL

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

Document Version Independent Id

12bd8142-8234-f9ec-06b1-65f3099c9566

Article author

@BillWagner

Metadata

  • ID: 7b592718-2003-6ee7-cd55-424ff3f9c77c
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Associated WorkItem - 481108

Metadata

Metadata

Labels

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

Type

No type

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions