We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fccbbca commit 738b40eCopy full SHA for 738b40e
src/compiler/checker.ts
@@ -4408,7 +4408,10 @@ namespace ts {
4408
context.flags ^= NodeBuilderFlags.InInitialEntityName;
4409
}
4410
let firstChar = symbolName.charCodeAt(0);
4411
- const canUsePropertyAccess = isIdentifierStart(firstChar, languageVersion);
+ const canUsePropertyAccess = firstChar === CharacterCodes.hash ?
4412
+ symbolName.length > 1 && isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :
4413
+ isIdentifierStart(firstChar, languageVersion);
4414
+
4415
if (index === 0 || canUsePropertyAccess) {
4416
const identifier = setEmitFlags(createIdentifier(symbolName, typeParameterNodes), EmitFlags.NoAsciiEscaping);
4417
identifier.symbol = symbol;
0 commit comments