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

11 lines
514 B
Text
Raw Normal View History

2015-03-20 06:57:03 +01:00
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts (1 errors) ====
2015-03-25 01:00:29 +01:00
declare function dec(target: any, propertyKey: string): void;
2015-03-20 06:57:03 +01:00
class C {
public @dec prop;
~~~~~~
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
}