2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/funClodule.ts(1,18): error TS2300: Duplicate identifier 'foo'.
|
|
|
|
tests/cases/compiler/funClodule.ts(2,16): error TS2300: Duplicate identifier 'foo'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/funClodule.ts(5,15): error TS2300: Duplicate identifier 'foo'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/funClodule.ts(8,15): error TS2300: Duplicate identifier 'foo2'.
|
|
|
|
tests/cases/compiler/funClodule.ts(9,16): error TS2300: Duplicate identifier 'foo2'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/funClodule.ts(12,18): error TS2300: Duplicate identifier 'foo2'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/funClodule.ts(15,10): error TS2300: Duplicate identifier 'foo3'.
|
|
|
|
tests/cases/compiler/funClodule.ts(16,8): error TS2300: Duplicate identifier 'foo3'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/funClodule.ts(19,7): error TS2300: Duplicate identifier 'foo3'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/funClodule.ts (9 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function foo();
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
declare module foo {
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export function x(): any;
|
|
|
|
}
|
|
|
|
declare class foo { } // Should error
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
declare class foo2 { }
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'foo2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
declare module foo2 {
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'foo2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export function x(): any;
|
|
|
|
}
|
|
|
|
declare function foo2(); // Should error
|
2014-10-01 20:27:20 +02:00
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'foo2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
function foo3() { }
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'foo3'.
|
2014-07-13 01:04:16 +02:00
|
|
|
module foo3 {
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'foo3'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export function x(): any { }
|
|
|
|
}
|
|
|
|
class foo3 { } // Should error
|
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'foo3'.
|