summaryrefslogtreecommitdiff
path: root/tests/testdata/subdir/more_decorators.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/subdir/more_decorators.ts')
-rw-r--r--tests/testdata/subdir/more_decorators.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testdata/subdir/more_decorators.ts b/tests/testdata/subdir/more_decorators.ts
new file mode 100644
index 000000000..674705d56
--- /dev/null
+++ b/tests/testdata/subdir/more_decorators.ts
@@ -0,0 +1,18 @@
+// deno-lint-ignore-file
+function a() {
+ console.log("a(): evaluated");
+ return (
+ _target: any,
+ _propertyKey: string,
+ _descriptor: PropertyDescriptor,
+ ) => {
+ console.log("a(): called");
+ };
+}
+
+export class B {
+ @a()
+ method() {
+ console.log("method");
+ }
+}