1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
=== tests/cases/compiler/extendedUnicodePlaneIdentifiers.ts ===
const đ = 4;
>đ : Symbol(đ, Decl(extendedUnicodePlaneIdentifiers.ts, 0, 5))
const đ = 5;
>đ : Symbol(đ, Decl(extendedUnicodePlaneIdentifiers.ts, 1, 5))
console.log(đ + đ); // 9
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>đ : Symbol(đ, Decl(extendedUnicodePlaneIdentifiers.ts, 1, 5))
>đ : Symbol(đ, Decl(extendedUnicodePlaneIdentifiers.ts, 0, 5))
class K {
>K : Symbol(K, Decl(extendedUnicodePlaneIdentifiers.ts, 2, 21))
#đ = 4;
>#đ : Symbol(K[#đ], Decl(extendedUnicodePlaneIdentifiers.ts, 4, 9))
#đ = 5;
>#đ : Symbol(K[#đ], Decl(extendedUnicodePlaneIdentifiers.ts, 5, 12))
}
// lower 8 bits look like 'a'
const ᥠ= 6;
>ᥠ: Symbol(áĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 10, 5))
console.log(ᥠ** áĄ);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>ᥠ: Symbol(áĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 10, 5))
>ᥠ: Symbol(áĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 10, 5))
// lower 8 bits aren't a valid unicode character
const á = 7;
>á : Symbol(á, Decl(extendedUnicodePlaneIdentifiers.ts, 14, 5))
console.log(á ** á);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>á : Symbol(á, Decl(extendedUnicodePlaneIdentifiers.ts, 14, 5))
>á : Symbol(á, Decl(extendedUnicodePlaneIdentifiers.ts, 14, 5))
// a mix, for good measure
const ááĄđ = 7;
>ááĄđ : Symbol(ááĄđ, Decl(extendedUnicodePlaneIdentifiers.ts, 18, 5))
console.log(ááĄđ ** ááĄđ);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>ááĄđ : Symbol(ááĄđ, Decl(extendedUnicodePlaneIdentifiers.ts, 18, 5))
>ááĄđ : Symbol(ááĄđ, Decl(extendedUnicodePlaneIdentifiers.ts, 18, 5))
const áĄđá = 7;
>áĄđá : Symbol(áĄđá, Decl(extendedUnicodePlaneIdentifiers.ts, 21, 5))
console.log(áĄđá ** áĄđá);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>áĄđá : Symbol(áĄđá, Decl(extendedUnicodePlaneIdentifiers.ts, 21, 5))
>áĄđá : Symbol(áĄđá, Decl(extendedUnicodePlaneIdentifiers.ts, 21, 5))
const đáᥠ= 7;
>đáᥠ: Symbol(đááĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 24, 5))
console.log(đáᥠ** đááĄ);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>đáᥠ: Symbol(đááĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 24, 5))
>đáᥠ: Symbol(đááĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 24, 5))
const đąđŽđľđľđ¸ = "đđ¸đťđľđ";
>đąđŽđľđľđ¸ : Symbol(đąđŽđľđľđ¸, Decl(extendedUnicodePlaneIdentifiers.ts, 27, 5))
const ⹯⹹ = "ok"; // BMP
>⹯⹹ : Symbol(⹯⹹, Decl(extendedUnicodePlaneIdentifiers.ts, 29, 5))
const đ¸đšđş = "ok"; // SMP
>đ¸đšđş : Symbol(đ¸đšđş, Decl(extendedUnicodePlaneIdentifiers.ts, 31, 5))
const đĄđĄŽđĄŻ = "ok"; // SIP
>đĄđĄŽđĄŻ : Symbol(đĄđĄŽđĄŻ, Decl(extendedUnicodePlaneIdentifiers.ts, 33, 5))
const đĄđşâąąđŽ = "ok";
>đĄđşâąąđŽ : Symbol(đĄđşâąąđŽ, Decl(extendedUnicodePlaneIdentifiers.ts, 35, 5))
const đşâąąđŽđĄ = "ok";
>đşâąąđŽđĄ : Symbol(đşâąąđŽđĄ, Decl(extendedUnicodePlaneIdentifiers.ts, 37, 5))
const âąąđŽđĄđş = "ok";
>âąąđŽđĄđş : Symbol(âąąđŽđĄđş, Decl(extendedUnicodePlaneIdentifiers.ts, 39, 5))
const đŽđĄđşâąą = "ok";
>đŽđĄđşâąą : Symbol(đŽđĄđşâąą, Decl(extendedUnicodePlaneIdentifiers.ts, 41, 5))
|