diff --git a/tests/cases/conformance/types/mapped/mappedTypesArraysTuples.ts b/tests/cases/conformance/types/mapped/mappedTypesArraysTuples.ts index c936a86c897..5d8fbc4b379 100644 --- a/tests/cases/conformance/types/mapped/mappedTypesArraysTuples.ts +++ b/tests/cases/conformance/types/mapped/mappedTypesArraysTuples.ts @@ -85,3 +85,11 @@ declare function mapArray(arr: T): Mapped; function acceptMappedArray(arr: T) { acceptArray(mapArray(arr)); } + +// Repro from #26163 + +type Unconstrained = ElementType>; +type T1 = Unconstrained<[string, number, boolean]>; // string | number | boolean + +type Constrained = ElementType>; +type T2 = Constrained<[string, number, boolean]>; // string | number | boolean