Don't error on duplicate prototype property assignments

Fixes #7063
This commit is contained in:
Ryan Cavanaugh
2016-02-26 14:58:01 -08:00
parent dc4cd52a9a
commit 8334aeac4d
2 changed files with 29 additions and 1 deletions

View File

@@ -1465,7 +1465,7 @@ namespace ts {
}
// Declare the method/property
declareSymbol(funcSymbol.members, funcSymbol, leftSideOfAssignment, SymbolFlags.Property, SymbolFlags.PropertyExcludes);
declareSymbol(funcSymbol.members, funcSymbol, leftSideOfAssignment, SymbolFlags.Property, SymbolFlags.PropertyExcludes & ~SymbolFlags.Property);
}
function bindCallExpression(node: CallExpression) {