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

11 lines
498 B
Plaintext
Raw Normal View History

2015-03-20 06:57:03 +01:00
tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts(4,5): error TS1206: Decorators are not valid here.
2015-03-17 23:03:25 +01:00
==== 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() {}
2015-04-02 21:05:56 +02:00
~
2015-03-20 06:57:03 +01:00
!!! error TS1206: Decorators are not valid here.
2015-03-17 22:06:06 +01:00
}