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

Roslyn rejects \U unicode characters in identifiers #13560

gafter opened this issue Sep 2, 2016 · 0 comments


None yet
1 participant
Copy link

commented Sep 2, 2016

Roslyn rejects Unicode characters in the range U+10000 to U+10FFFF in identifiers. This is specifically called out as supported in the language specification, but does not work in the compilers. See . Here is a sample:

using System;
using System.Collections.Generic;
using System.Linq;

class Program
    public static void Main(string[] args)
        int \U00020000 = 10;

See also #13474 and #9731, which report related errors when surrogate pairs (rather than Unicode escape sequences) appear in the input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.