TypeScript/tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts

23 lines
No EOL
403 B
TypeScript

// @target:es5
// @module:commonjs
// @experimentaldecorators: true
// @filename: a.ts
// from #3108
export var test = 'abc';
// @filename: b.ts
import { test } from './a';
function filter(handler: any) {
return function (target: any, propertyKey: string) {
// ...
};
}
class Wat {
@filter(() => test == 'abc')
static whatever() {
// ...
}
}