17 lines
983 B
Text
17 lines
983 B
Text
|
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts(4,5): error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type 'PropertyAnnotation'.
|
||
|
Types of parameters 'paramIndex' and 'propertyKey' are incompatible.
|
||
|
Type 'number' is not assignable to type 'string | symbol'.
|
||
|
Type 'number' is not assignable to type 'symbol'.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts (1 errors) ====
|
||
|
declare function dec(target: Function, paramIndex: number): void;
|
||
|
|
||
|
class C {
|
||
|
@dec prop;
|
||
|
~~~~
|
||
|
!!! error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type 'PropertyAnnotation'.
|
||
|
!!! error TS2322: Types of parameters 'paramIndex' and 'propertyKey' are incompatible.
|
||
|
!!! error TS2322: Type 'number' is not assignable to type 'string | symbol'.
|
||
|
!!! error TS2322: Type 'number' is not assignable to type 'symbol'.
|
||
|
}
|