summaryrefslogtreecommitdiff
path: root/cli/tests/subdir/more_decorators.ts
blob: 674705d56cd7027922321b16555e8997b1be3aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");
  }
}