2014-07-13 01:04:16 +02:00
|
|
|
//// [functionOverloads6.ts]
|
|
|
|
class foo {
|
|
|
|
static fnOverload();
|
|
|
|
static fnOverload(foo:string);
|
|
|
|
static fnOverload(foo?: any){ }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionOverloads6.js]
|
|
|
|
var foo = (function () {
|
|
|
|
function foo() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
foo.fnOverload = function (foo) { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return foo;
|
|
|
|
})();
|