mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Add regression test
This commit is contained in:
parent
2ee2ffb8e7
commit
e44a52a011
10
tests/cases/compiler/conditionalTypeSimplification.ts
Normal file
10
tests/cases/compiler/conditionalTypeSimplification.ts
Normal file
@ -0,0 +1,10 @@
|
||||
// Repro from #30794
|
||||
|
||||
interface AbstractSchema<S, V> {
|
||||
m1<T> (v: T): SchemaType<S, Exclude<V, T>>;
|
||||
m2<T> (v: T): SchemaType<S, T>;
|
||||
}
|
||||
|
||||
type SchemaType<S, V> = S extends object ? AnySchema<V> : never;
|
||||
interface AnySchema<V> extends AnySchemaType<AnySchema<undefined>, V> { }
|
||||
interface AnySchemaType<S extends AbstractSchema<any, any>, V> extends AbstractSchema<S, V> { }
|
||||
Loading…
x
Reference in New Issue
Block a user