mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
592 B
TypeScript
32 lines
592 B
TypeScript
//// [tests/cases/compiler/functionOverloadsOutOfOrder.ts] ////
|
|
|
|
//// [functionOverloadsOutOfOrder.ts]
|
|
class d {
|
|
private foo(n: number): string;
|
|
private foo(ns: any) {
|
|
return ns.toString();
|
|
}
|
|
private foo(s: string): string;
|
|
}
|
|
|
|
class e {
|
|
private foo(ns: any) {
|
|
return ns.toString();
|
|
}
|
|
private foo(s: string): string;
|
|
private foo(n: number): string;
|
|
}
|
|
|
|
//// [functionOverloadsOutOfOrder.js]
|
|
"use strict";
|
|
class d {
|
|
foo(ns) {
|
|
return ns.toString();
|
|
}
|
|
}
|
|
class e {
|
|
foo(ns) {
|
|
return ns.toString();
|
|
}
|
|
}
|