2014-07-13 01:04:16 +02:00
|
|
|
//// [functionNameConflicts.ts]
|
|
|
|
//Function and variable of the same name in same declaration space
|
|
|
|
//Function overload with different name from implementation signature
|
|
|
|
|
|
|
|
module M {
|
|
|
|
function fn1() { }
|
|
|
|
var fn1;
|
|
|
|
|
|
|
|
var fn2;
|
|
|
|
function fn2() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
function fn3() { }
|
|
|
|
var fn3;
|
|
|
|
|
|
|
|
function func() {
|
|
|
|
var fn4;
|
|
|
|
function fn4() { }
|
|
|
|
|
|
|
|
function fn5() { }
|
|
|
|
var fn5;
|
|
|
|
}
|
|
|
|
|
|
|
|
function over();
|
|
|
|
function overrr() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionNameConflicts.js]
|
2014-08-14 15:53:37 +02:00
|
|
|
//Function and variable of the same name in same declaration space
|
|
|
|
//Function overload with different name from implementation signature
|
2014-07-13 01:04:16 +02:00
|
|
|
var M;
|
|
|
|
(function (M) {
|
2015-02-07 03:45:09 +01:00
|
|
|
function fn1() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
var fn1;
|
|
|
|
var fn2;
|
2015-02-07 03:45:09 +01:00
|
|
|
function fn2() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
})(M || (M = {}));
|
2015-02-07 03:45:09 +01:00
|
|
|
function fn3() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
var fn3;
|
|
|
|
function func() {
|
|
|
|
var fn4;
|
2015-02-07 03:45:09 +01:00
|
|
|
function fn4() { }
|
|
|
|
function fn5() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
var fn5;
|
|
|
|
}
|
|
|
|
function overrr() {
|
|
|
|
}
|