0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/cli/tests/no_check_decorators.ts

22 lines
309 B
TypeScript
Raw Normal View History

// 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();