TypeScript/tests/baselines/reference/decoratorOnClassConstructor1.errors.txt
2015-04-02 12:05:56 -07:00

11 lines
498 B
Plaintext

tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts(4,5): error TS1206: Decorators are not valid here.
==== 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 TS1206: Decorators are not valid here.
}