diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2020-11-02 22:33:43 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-02 22:33:43 +1100 |
| commit | 272e9b82ebddaa33cbc01cc8b1efd8a36ec3c645 (patch) | |
| tree | 33ec0f339eeaa302ca05543a7110019468ac4b07 /cli/tests/no_check_decorators.ts | |
| parent | fdcc78500cc1aff8c87d76abd1692e79977ac9cc (diff) | |
fix(cli): inject helpers when transpiling via swc (#8221)
Fixes #8212
Diffstat (limited to 'cli/tests/no_check_decorators.ts')
| -rw-r--r-- | cli/tests/no_check_decorators.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cli/tests/no_check_decorators.ts b/cli/tests/no_check_decorators.ts new file mode 100644 index 000000000..d9a3747b9 --- /dev/null +++ b/cli/tests/no_check_decorators.ts @@ -0,0 +1,21 @@ +/* eslint-disable */ +function a() { + console.log("a(): evaluated"); + return ( + _target: any, + _propertyKey: string, + _descriptor: PropertyDescriptor, + ) => { + console.log("a(): called"); + }; +} + +class B { + @a() + method() { + console.log("method"); + } +} + +const b = new B(); +b.method(); |
