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