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

10 lines
424 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/callbackArgsDifferByOptionality.ts (2 errors) ====
function x3(callback: (x?: 'hi') => number);
~~~~~~~~~~~~~~~~~~~~
!!! Specialized overload signature is not assignable to any non-specialized signature.
function x3(callback: (x: string) => number);
function x3(callback: (x: any) => number) {
cb();
~~
!!! Cannot find name 'cb'.
}