TypeScript/tests/baselines/reference/decoratorOnClassMethod17.errors.txt

15 lines
546 B
Plaintext

tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts(4,18): error TS1436: Decorators must precede the name and all keywords of property declarations.
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod17.ts (1 errors) ====
declare var decorator: any;
class Foo {
private prop @decorator
~
!!! error TS1436: Decorators must precede the name and all keywords of property declarations.
foo() {
return 0;
}
}