TypeScript/tests/baselines/reference/callbackArgsDifferByOptionality.errors.txt
2014-09-11 16:11:08 -07:00

10 lines
452 B
Plaintext

==== tests/cases/compiler/callbackArgsDifferByOptionality.ts (2 errors) ====
function x3(callback: (x?: 'hi') => number);
~~~~~~~~~~~~~~~~~~~~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
function x3(callback: (x: string) => number);
function x3(callback: (x: any) => number) {
cb();
~~
!!! error TS2304: Cannot find name 'cb'.
}