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