2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts(1,7): error TS2300: Duplicate identifier 'C'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts(2,11): error TS2300: Duplicate identifier 'C'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts(5,11): error TS2300: Duplicate identifier 'D'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts(9,15): error TS2300: Duplicate identifier 'D'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts (4 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class C { foo: string; }
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
2014-07-13 01:04:16 +02:00
|
|
|
interface C { foo: string; } // error
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
module M {
|
|
|
|
class D {
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'D'.
|
2014-07-13 01:04:16 +02:00
|
|
|
bar: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface D { // error
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'D'.
|
2014-07-13 01:04:16 +02:00
|
|
|
bar: string;
|
|
|
|
}
|
|
|
|
}
|