Skip to content

Commit a4ab192

Browse files
committed
Fix the merge conflicts
1 parent f99bc15 commit a4ab192

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: src/compiler/checker.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4395,7 +4395,8 @@ module ts {
43954395
// That helps in making sure not assigning types as any when resolved out of order
43964396
var containerNodes: Node[] = [];
43974397
for (var parent = node.parent; parent; parent = parent.parent) {
4398-
if (isExpression(parent) && isContextSensitiveExpression(<Expression>parent)) {
4398+
if ((isExpression(parent) || isObjectLiteralMethod(node)) &&
4399+
isContextSensitive(<Expression>parent)) {
43994400
containerNodes.unshift(parent);
44004401
}
44014402
}

Diff for: src/harness/typeWriter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class TypeWriterWalker {
9494
}
9595

9696
private getTypeOfNode(node: ts.Node): ts.Type {
97-
var type = this.checker.getTypeOfLocation(node);
97+
var type = this.checker.getTypeAtLocation(node);
9898
ts.Debug.assert(type !== undefined, "type doesn't exist");
9999
return type;
100100
}

Diff for: tests/baselines/reference/callExpressionWithMissingTypeArgument1.errors.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tests/cases/compiler/callExpressionWithMissingTypeArgument1.ts(1,1): error TS230
44

55
==== tests/cases/compiler/callExpressionWithMissingTypeArgument1.ts (2 errors) ====
66
Foo<a,,b>();
7-
7+
~
88
!!! error TS1110: Type expected.
99
~~~
1010
!!! error TS2304: Cannot find name 'Foo'.

0 commit comments

Comments
 (0)