mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
293 B
TypeScript
16 lines
293 B
TypeScript
//// [tests/cases/compiler/functionOverloads6.ts] ////
|
|
|
|
//// [functionOverloads6.ts]
|
|
class foo {
|
|
static fnOverload();
|
|
static fnOverload(foo:string);
|
|
static fnOverload(foo?: any){ }
|
|
}
|
|
|
|
|
|
//// [functionOverloads6.js]
|
|
"use strict";
|
|
class foo {
|
|
static fnOverload(foo) { }
|
|
}
|