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

11 lines
721 B
Plaintext
Raw Normal View History

2015-03-25 01:00:29 +01:00
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts(4,5): error TS2322: Type '(target: Function, propertyKey: string | symbol, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol) => void'.
2015-03-20 06:57:03 +01:00
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts (1 errors) ====
2015-03-25 01:00:29 +01:00
declare function dec(target: Function, propertyKey: string | symbol, paramIndex: number): void;
2015-03-20 06:57:03 +01:00
class C {
@dec prop;
~~~~
2015-03-25 01:00:29 +01:00
!!! error TS2322: Type '(target: Function, propertyKey: string | symbol, paramIndex: number) => void' is not assignable to type '(target: Object, propertyKey: string | symbol) => void'.
2015-03-17 22:06:06 +01:00
}