// @target: es5, es2015
// @experimentaldecorators: true
// @emitDecoratorMetadata: true
// @filename: a.ts

function decorator() {
    return (target: new (...args: any[]) => any) => {}
}

@decorator()
class Foo {
    public static func(): Foo {
        return new Foo();
    }
}
Foo.func();
