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