deno/cli/tests/no_check_decorators.ts
Bartek Iwańczuk 8e914be742
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint" 
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00

22 lines
309 B
TypeScript

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