11 lines
498 B
Plaintext
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.
|
|
} |