Skip to content

Commit 6d6b19f

Browse files
committed
Fix typo in intersection apparent type
1 parent 80e5f2f commit 6d6b19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4871,7 +4871,7 @@ namespace ts {
48714871
*/
48724872
function getApparentType(type: Type): Type {
48734873
const t = type.flags & TypeFlags.TypeVariable ? getBaseConstraintOfType(<TypeVariable>type) || emptyObjectType : type;
4874-
return t.flags & TypeFlags.Intersection ? getApparentTypeOfIntersectionType(<IntersectionType>type) :
4874+
return t.flags & TypeFlags.Intersection ? getApparentTypeOfIntersectionType(<IntersectionType>t) :
48754875
t.flags & TypeFlags.StringLike ? globalStringType :
48764876
t.flags & TypeFlags.NumberLike ? globalNumberType :
48774877
t.flags & TypeFlags.BooleanLike ? globalBooleanType :

0 commit comments

Comments
 (0)