TypeScript/tests/baselines/reference/overloadOnConstInCallback1.errors.txt
2014-07-12 17:30:19 -07:00

12 lines
478 B
Plaintext

==== tests/cases/compiler/overloadOnConstInCallback1.ts (1 errors) ====
class C {
x1(a: number, callback: (x: 'hi') => number); // error
~~~~~~~~~~~~~~~~~~~
!!! Specialized overload signature is not assignable to any non-specialized signature.
x1(a: number, callback: (x: any) => number) {
callback('hi');
callback('bye');
var hm = "hm";
callback(hm);
}
}