2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts(2,5): error TS2300: Duplicate identifier 'x'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts(6,5): error TS2300: Duplicate identifier 'x'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts(11,9): error TS2300: Duplicate identifier 'x'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts(15,9): error TS2300: Duplicate identifier 'x'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts(33,9): error TS2300: Duplicate identifier 'x'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts(39,9): error TS2300: Duplicate identifier 'x'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames2.ts (6 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
interface A {
|
|
|
|
x: string; // error
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface A {
|
|
|
|
x: string; // error
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module M {
|
|
|
|
interface A<T> {
|
|
|
|
x: T;
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface A<T> {
|
|
|
|
x: T; // error
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
|
|
|
interface A<T> {
|
|
|
|
x: T;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
|
|
|
interface A<T> {
|
|
|
|
x: T; // ok, different declaration space than other M2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M3 {
|
|
|
|
export interface A<T> {
|
|
|
|
x: T;
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M3 {
|
|
|
|
export interface A<T> {
|
|
|
|
x: T; // error
|
2014-10-01 20:27:20 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|