mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +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
|
|
}
|
|
}
|