mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
21 lines
315 B
TypeScript
21 lines
315 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @outDir: ./out
|
|
|
|
// @Filename: /a.js
|
|
class A { constructor() { this.x = 0; } }
|
|
/** @implements A*/
|
|
class B {}
|
|
|
|
/** @implements A*/
|
|
class B2 {
|
|
x = 10
|
|
}
|
|
|
|
/** @implements {A}*/
|
|
class B3 {
|
|
constructor() { this.x = 10 }
|
|
}
|