mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
272 B
TypeScript
12 lines
272 B
TypeScript
//// [tests/cases/compiler/functionOverloads14.ts] ////
|
|
|
|
//// [functionOverloads14.ts]
|
|
function foo():{a:number;}
|
|
function foo():{a:string;}
|
|
function foo():{a:any;} { return {a:1} }
|
|
|
|
|
|
//// [functionOverloads14.js]
|
|
"use strict";
|
|
function foo() { return { a: 1 }; }
|