mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
448 B
TypeScript
24 lines
448 B
TypeScript
//// [tests/cases/compiler/functionOverloads7.ts] ////
|
|
|
|
//// [functionOverloads7.ts]
|
|
class foo {
|
|
private bar();
|
|
private bar(foo: string);
|
|
private bar(foo?: any){ return "foo" }
|
|
public n() {
|
|
var foo = this.bar();
|
|
foo = this.bar("test");
|
|
}
|
|
}
|
|
|
|
|
|
//// [functionOverloads7.js]
|
|
"use strict";
|
|
class foo {
|
|
bar(foo) { return "foo"; }
|
|
n() {
|
|
var foo = this.bar();
|
|
foo = this.bar("test");
|
|
}
|
|
}
|