You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
var f1: (a: number | string) => undefined = function(){};
var f2: (a: number) => undefined = f1;
// Error: Type "(number | string) => undefined" is incompatible with type "(number) => undefined"
// but it should work.
var f3: () => string = function(){ return '1'};
var f4: () => number | string = f3;
// Error: Type "() => string" is incompatible with type "() => number | string"
// but it should work.
The text was updated successfully, but these errors were encountered:
Playground
The text was updated successfully, but these errors were encountered: