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

Open
gafter opened this issue Sep 2, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@gafter
Copy link
Member

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 https://msdn.microsoft.com/en-us/library/aa664669(v=vs.71).aspx . Here is a sample:

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

class Program
{
    public static void Main(string[] args)
    {
        int \U00020000 = 10; http://www.fileformat.info/info/unicode/char/20000/index.htm
        Console.WriteLine(\U00020000);
    }
}

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.