mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
//// [tests/cases/compiler/contextualTyping23.ts] ////
|
|
|
|
//// [contextualTyping23.ts]
|
|
var foo:(a:{():number; (i:number):number; })=>number; foo = function(a){return 5};
|
|
|
|
//// [contextualTyping23.js]
|
|
"use strict";
|
|
var foo;
|
|
foo = function (a) { return 5; };
|