mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
325 B
TypeScript
14 lines
325 B
TypeScript
//// [tests/cases/conformance/functions/functionOverloadCompatibilityWithVoid02.ts] ////
|
|
|
|
//// [functionOverloadCompatibilityWithVoid02.ts]
|
|
function f(x: string): void;
|
|
function f(x: string): number {
|
|
return 0;
|
|
}
|
|
|
|
//// [functionOverloadCompatibilityWithVoid02.js]
|
|
"use strict";
|
|
function f(x) {
|
|
return 0;
|
|
}
|