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

13 lines
605 B
Plaintext
Raw Normal View History

2015-05-27 19:19:37 +02:00
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts(4,6): error TS2345: Argument of type 'C' is not assignable to parameter of type 'Function'.
Property 'apply' is missing in type 'C'.
2015-03-20 06:57:03 +01:00
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts (1 errors) ====
declare function dec(target: Function, paramIndex: number): void;
class C {
@dec method() {}
~~~
2015-05-27 19:19:37 +02:00
!!! error TS2345: Argument of type 'C' is not assignable to parameter of type 'Function'.
!!! error TS2345: Property 'apply' is missing in type 'C'.
2015-03-17 22:06:06 +01:00
}