Add regression test

This commit is contained in:
Anders Hejlsberg
2018-07-24 15:33:02 -07:00
committed by Mohamed Hegazy
parent 483ed8fb50
commit 8738feacfd

View File

@@ -15,4 +15,9 @@ var a: {
var b = <U extends T, T extends U>() => { }
var b2 = <T extends U, U extends V, V extends T>() => { }
class D<U extends T, T extends V, V extends T> { }
class D<U extends T, T extends V, V extends T> { }
// Repro from #25740
type Foo<T> = [T] extends [number] ? {} : {};
function foo<S extends Foo<S>>() {}