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

11 lines
559 B
Plaintext
Raw Normal View History

tests/cases/conformance/decorators/class/decoratorOnClass8.ts(3,1): error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type '(target: typeof C) => void | typeof C'.
2015-03-20 06:57:03 +01:00
==== tests/cases/conformance/decorators/class/decoratorOnClass8.ts (1 errors) ====
declare function dec(): (target: Function, paramIndex: number) => void;
@dec()
~~~~~~
!!! error TS2322: Type '(target: Function, paramIndex: number) => void' is not assignable to type '(target: typeof C) => void | typeof C'.
2015-03-20 06:57:03 +01:00
class C {
2015-03-17 22:06:06 +01:00
}