mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
372 B
TypeScript
14 lines
372 B
TypeScript
// @strict: true
|
|
// @target: es2022
|
|
// @noEmitHelpers: true
|
|
// @noTypesAndSymbols: true
|
|
|
|
declare function dec(target: any, context: any): any;
|
|
|
|
// When a decorated class extends null and has no explicit constructor,
|
|
// the synthetic constructor should NOT call super(...arguments) since
|
|
// null is not a valid constructor.
|
|
class C extends null {
|
|
@dec x: number = 1;
|
|
}
|