mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
//// [tests/cases/compiler/contextualTyping32.ts] ////
|
|
|
|
//// [contextualTyping32.ts]
|
|
function foo(param: {():number; (i:number):number; }[]) { }; foo([function(){return 1;}, function(){return 4}]);
|
|
|
|
//// [contextualTyping32.js]
|
|
"use strict";
|
|
function foo(param) { }
|
|
;
|
|
foo([function () { return 1; }, function () { return 4; }]);
|