mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
18 lines
262 B
TypeScript
18 lines
262 B
TypeScript
|
// @target: esnext
|
||
|
// @allowjs: true
|
||
|
// @noemit: true
|
||
|
// @checkjs: true
|
||
|
// @Filename: foo.ts
|
||
|
class Foo {
|
||
|
get p() { return 1 }
|
||
|
set p(value) { }
|
||
|
}
|
||
|
|
||
|
// @Filename: bar.js
|
||
|
class Bar extends Foo {
|
||
|
constructor() {
|
||
|
super()
|
||
|
this.p = 2
|
||
|
}
|
||
|
}
|