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

11 lines
548 B
Text
Raw Normal View History

2015-03-17 22:06:06 +01:00
tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts(4,5): error TS1203: Decorators are not valid on this declaration type.
==== tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts (1 errors) ====
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec constructor() {}
~~~~~~~~~~~~~~~~~~~~~
!!! error TS1203: Decorators are not valid on this declaration type.
}