Add regression test

This commit is contained in:
Anders Hejlsberg committed 2018-07-24 15:33:02 -07:00
1 parent 1fd1de9625
commit aeae05eaf5
1 file changed
+6 -1
@@ -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>>() {}