mirror of
https://github.com/denoland/deno.git
synced 2025-01-12 17:09:00 -05:00
22 lines
305 B
TypeScript
22 lines
305 B
TypeScript
|
/* 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();
|