mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
10 lines
296 B
TypeScript
10 lines
296 B
TypeScript
// some complex cases of assignment compat of generic signatures that stress contextual signature instantiation
|
|
|
|
interface I<T, S> {
|
|
<U>(f: (x: T) => (y: S) => U): U
|
|
}
|
|
|
|
var g: <T>(x: T) => <S>(y: S) => I<T, S>
|
|
var h: <T>(x: T) => <S>(y: S) => { <U>(f: (x: T) => (y: S) => U): U }
|
|
|
|
g = h // ok
|