From 8738feacfd589854f3e73ace1cce0c1cd891a809 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 24 Jul 2018 15:33:02 -0700 Subject: [PATCH] Add regression test --- .../typeParameterIndirectlyConstrainedToItself.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts b/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts index d5e5ae9208e..63ed22d4865 100644 --- a/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts +++ b/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts @@ -15,4 +15,9 @@ var a: { var b = () => { } var b2 = () => { } -class D { } \ No newline at end of file +class D { } + +// Repro from #25740 + +type Foo = [T] extends [number] ? {} : {}; +function foo>() {}