Merge pull request #21217 from Microsoft/fix20146

Symbol-named properties do not need to align with string indexer type
This commit is contained in:
Ron Buckton
2018-01-16 17:01:27 -08:00
committed by GitHub
5 changed files with 146 additions and 1 deletions

View File

@@ -22298,7 +22298,8 @@ namespace ts {
indexType: Type,
indexKind: IndexKind): void {
if (!indexType) {
// ESSymbol properties apply to neither string nor numeric indexers.
if (!indexType || isKnownSymbol(prop)) {
return;
}