2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/anyDeclare.ts(3,9): error TS2300: Duplicate identifier 'myFn'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/anyDeclare.ts(4,14): error TS2300: Duplicate identifier 'myFn'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/anyDeclare.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var x: any;
|
|
|
|
module myMod {
|
|
|
|
var myFn;
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'myFn'.
|
2014-07-13 01:04:16 +02:00
|
|
|
function myFn() { }
|
2014-10-01 20:27:20 +02:00
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'myFn'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|