mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
15 lines
249 B
TypeScript
15 lines
249 B
TypeScript
class C {
|
|
test: string
|
|
}
|
|
|
|
class D extends C {
|
|
test2: string
|
|
}
|
|
|
|
declare function testError<T extends C>(a: (t: T, t1: T) => void): T
|
|
|
|
// more args
|
|
testError((t1: D, t2, t3) => {})
|
|
testError((t1, t2: D, t3) => {})
|
|
testError((t1, t2, t3: D) => {})
|