TypeScript/tests/baselines/reference/decoratorOnClassMethod11.errors.txt
2015-04-26 18:31:47 -07:00

14 lines
No EOL
530 B
Text

tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts(5,10): error TS2331: 'this' cannot be referenced in a module or namespace body.
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts (1 errors) ====
module M {
class C {
decorator(target: Object, key: string): void { }
@this.decorator
~~~~
!!! error TS2331: 'this' cannot be referenced in a module or namespace body.
method() { }
}
}