TypeScript/tests/baselines/reference/functionNameConflicts.errors.txt

40 lines
931 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/functions/functionNameConflicts.ts (6 errors) ====
//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;
~~~
!!! Duplicate identifier 'fn1'.
var fn2;
function fn2() { }
~~~
!!! Duplicate identifier 'fn2'.
}
function fn3() { }
var fn3;
~~~
!!! Duplicate identifier 'fn3'.
function func() {
var fn4;
function fn4() { }
~~~
!!! Duplicate identifier 'fn4'.
function fn5() { }
var fn5;
~~~
!!! Duplicate identifier 'fn5'.
}
function over();
function overrr() {
2014-07-31 01:27:13 +02:00
~~~~~~
!!! Function implementation name must be 'over'.
2014-07-13 01:04:16 +02:00
}