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