Skip to content

Commit a6cb496

Browse files
CopilotBillWagner
andauthored
Add Unicode out-of-range example to CS1009 compiler error documentation (#47963)
* Initial plan * Add Unicode out-of-range example to CS1009 documentation Co-authored-by: BillWagner <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: BillWagner <[email protected]>
1 parent 2fe4138 commit a6cb496

File tree

1 file changed

+2
-0
lines changed
  • docs/csharp/language-reference/compiler-messages

1 file changed

+2
-0
lines changed

docs/csharp/language-reference/compiler-messages/cs1009.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class MyClass
3434
string hexEscapeSequence = '\X061';
3535
// CS1009; an uppercase \U-style Unicode escape sequence must have exactly 8 hex digits
3636
string uppercaseUnicodeEscape = '\U0061';
37+
// CS1009; Unicode code points above U+10FFFF are invalid (well-formed but out of range)
38+
string outOfRangeUnicode = "\U00110000";
3739
}
3840
}
3941
```

0 commit comments

Comments
 (0)