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