Skip to content

Commit f01ae16

Browse files
Don't add special behavior for tuples.
1 parent de7f98c commit f01ae16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16516,7 +16516,7 @@ namespace ts {
1651616516
if (t.flags & (TypeFlags.AnyOrUnknown | TypeFlags.InstantiableNonPrimitive | TypeFlags.Object | TypeFlags.Intersection) && t !== wildcardType && !isErrorType(t)) {
1651716517
if (!type.declaration.nameType) {
1651816518
let constraint;
16519-
if (isArrayType(t) || (t.flags & TypeFlags.Any) && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, or(isArrayType, isTupleType))) {
16519+
if (isArrayType(t) || (t.flags & TypeFlags.Any) && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayType)) {
1652016520
return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));
1652116521
}
1652216522
if (isGenericTupleType(t)) {

0 commit comments

Comments
 (0)