summaryrefslogtreecommitdiff
path: root/cli/tests/no_check_decorators.ts
blob: 9f7ec550d5c354118789f075f965da22a996a471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// deno-lint-ignore-file
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();