Add test for parameter decorator in construtor function
This commit is contained in:
@ -4,3 +4,7 @@ class A {
|
|||||||
method1(skipped: string, @Arg() b: string) {}
|
method1(skipped: string, @Arg() b: string) {}
|
||||||
method2(@Arg() a: string, @Arg() b: string) {}
|
method2(@Arg() a: string, @Arg() b: string) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class B {
|
||||||
|
constructor(@Arg() a: string) {}
|
||||||
|
}
|
@ -8,3 +8,8 @@ class A {
|
|||||||
|
|
||||||
_decorate([__param(1, Arg())], A.prototype, "method1", null);
|
_decorate([__param(1, Arg())], A.prototype, "method1", null);
|
||||||
_decorate([__param(0, Arg()), __param(1, Arg())], A.prototype, "method2", 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);
|
Reference in New Issue
Block a user