2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(2,9): error TS2300: Duplicate identifier 'x'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/nameCollisions.ts(4,12): error TS2300: Duplicate identifier 'x'.
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(10,12): error TS2300: Duplicate identifier 'z'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/nameCollisions.ts(13,9): error TS2300: Duplicate identifier 'z'.
tests/cases/compiler/nameCollisions.ts(15,12): error TS2434: A module declaration cannot be located prior to a class or function with which it is merged
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(24,9): error TS2300: Duplicate identifier 'f'.
2014-10-01 20:27:20 +02:00
tests/cases/compiler/nameCollisions.ts(25,14): error TS2300: Duplicate identifier 'f'.
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(27,14): error TS2300: Duplicate identifier 'f2'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/nameCollisions.ts(28,9): error TS2300: Duplicate identifier 'f2'.
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(33,11): error TS2300: Duplicate identifier 'C'.
2014-10-01 20:27:20 +02:00
tests/cases/compiler/nameCollisions.ts(34,14): error TS2300: Duplicate identifier 'C'.
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(36,14): error TS2300: Duplicate identifier 'C2'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/nameCollisions.ts(37,11): error TS2300: Duplicate identifier 'C2'.
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(42,11): error TS2300: Duplicate identifier 'cli'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/nameCollisions.ts(43,15): error TS2300: Duplicate identifier 'cli'.
2014-10-01 02:15:18 +02:00
tests/cases/compiler/nameCollisions.ts(45,15): error TS2300: Duplicate identifier 'cli2'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/nameCollisions.ts(46,11): error TS2300: Duplicate identifier 'cli2'.
2014-10-01 02:15:18 +02:00
==== tests/cases/compiler/nameCollisions.ts (17 errors) ====
2014-07-13 01:04:16 +02:00
module T {
var x = 2;
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier 'x'.
2014-07-13 01:04:16 +02:00
module x { // error
~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'x'.
2014-07-13 01:04:16 +02:00
export class Bar {
test: number;
}
}
module z {
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier 'z'.
2014-07-13 01:04:16 +02:00
var t;
}
var z; // error
~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'z'.
2014-07-13 01:04:16 +02:00
module y {
2014-07-17 01:15:10 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2434: A module declaration cannot be located prior to a class or function with which it is merged
2014-07-13 01:04:16 +02:00
var b;
}
class y { } // error
var w;
module w { } //ok
var f;
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier 'f'.
2014-07-13 01:04:16 +02:00
function f() { } //error
2014-10-01 20:27:20 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'f'.
2014-07-13 01:04:16 +02:00
function f2() { }
2014-10-01 02:15:18 +02:00
~~
!!! error TS2300: Duplicate identifier 'f2'.
2014-07-13 01:04:16 +02:00
var f2; // error
~~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'f2'.
2014-07-13 01:04:16 +02:00
var i;
interface i { } //ok
class C { }
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier 'C'.
2014-07-13 01:04:16 +02:00
function C() { } // error
2014-10-01 20:27:20 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'C'.
2014-07-13 01:04:16 +02:00
function C2() { }
2014-10-01 02:15:18 +02:00
~~
!!! error TS2300: Duplicate identifier 'C2'.
2014-07-13 01:04:16 +02:00
class C2 { } // error
~~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'C2'.
2014-07-13 01:04:16 +02:00
function fi() { }
interface fi { } // ok
class cli { }
2014-10-01 02:15:18 +02:00
~~~
!!! error TS2300: Duplicate identifier 'cli'.
2014-07-13 01:04:16 +02:00
interface cli { } // error
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'cli'.
2014-07-13 01:04:16 +02:00
interface cli2 { }
2014-10-01 02:15:18 +02:00
~~~~
!!! error TS2300: Duplicate identifier 'cli2'.
2014-07-13 01:04:16 +02:00
class cli2 { } // error
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2300: Duplicate identifier 'cli2'.
2014-07-13 01:04:16 +02:00
}