Fix == typo and add object literal 'this' test

This commit is contained in:
Nathan Shively-Sanders
2016-04-01 16:13:57 -07:00
parent 2a9f39b132
commit 921d5f83e9
5 changed files with 220 additions and 1 deletions

View File

@@ -4252,7 +4252,7 @@ namespace ts {
const resolvedSymbol = resolveName(param, paramSymbol.name, SymbolFlags.Value, undefined, undefined);
paramSymbol = resolvedSymbol;
}
if (i == 0 && paramSymbol.name === "this") {
if (i === 0 && paramSymbol.name === "this") {
hasThisParameter = true;
thisType = param.type ? getTypeFromTypeNode(param.type) : unknownType;
}