mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
11 lines
261 B
TypeScript
11 lines
261 B
TypeScript
|
|
class A<T1, T2> {
|
|
constructor(private map: (value: T1) => T2) {
|
|
|
|
}
|
|
}
|
|
|
|
class C extends A<number, string> {
|
|
// Ensure 'value' is not of type 'any' by invoking it with type arguments.
|
|
constructor() { super(value => String(value<string>())); }
|
|
} |