Add test for parameter decorator in construtor function

This commit is contained in:
aet
2021-07-21 23:41:50 -04:00
parent 4c8f3424ce
commit 5b251be6e1
2 changed files with 9 additions and 0 deletions

View File

@ -4,3 +4,7 @@ class A {
method1(skipped: string, @Arg() b: string) {}
method2(@Arg() a: string, @Arg() b: string) {}
}
class B {
constructor(@Arg() a: string) {}
}

View File

@ -8,3 +8,8 @@ class A {
_decorate([__param(1, Arg())], A.prototype, "method1", null);
_decorate([__param(0, Arg()), __param(1, Arg())], A.prototype, "method2", null);
let B = class B {
constructor(a: string) {}
};
B = _decorate([__param(0, Arg())], B);