5e06bea481
* getConstraintDeclaration gets the first declaration with a constraint, rather than just the first declaration * Add type annotation * Update comment
19 lines
506 B
TypeScript
19 lines
506 B
TypeScript
// @filename: working.ts
|
|
// minmal samples from #33395
|
|
export namespace ns {
|
|
interface Function<T extends (...args: any) => any> {
|
|
throttle(): Function<T>;
|
|
}
|
|
interface Function<T> {
|
|
unary(): Function<() => ReturnType<T>>;
|
|
}
|
|
}
|
|
// @filename: regression.ts
|
|
export namespace ns {
|
|
interface Function<T> {
|
|
unary(): Function<() => ReturnType<T>>;
|
|
}
|
|
interface Function<T extends (...args: any) => any> {
|
|
throttle(): Function<T>;
|
|
}
|
|
} |