mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
48 lines
757 B
TypeScript
48 lines
757 B
TypeScript
//// [tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithConflictingPropertyNames.ts] ////
|
|
|
|
//// [mergedInterfacesWithConflictingPropertyNames.ts]
|
|
interface A {
|
|
x: string; // error
|
|
}
|
|
|
|
interface A {
|
|
x: number;
|
|
}
|
|
|
|
namespace M {
|
|
interface A<T> {
|
|
x: T;
|
|
}
|
|
|
|
interface A<T> {
|
|
x: number; // error
|
|
}
|
|
}
|
|
|
|
namespace M2 {
|
|
interface A<T> {
|
|
x: T;
|
|
}
|
|
}
|
|
|
|
namespace M2 {
|
|
interface A<T> {
|
|
x: number; // ok, different declaration space than other M2
|
|
}
|
|
}
|
|
|
|
namespace M3 {
|
|
export interface A<T> {
|
|
x: T;
|
|
}
|
|
}
|
|
|
|
namespace M3 {
|
|
export interface A<T> {
|
|
x: number; // error
|
|
}
|
|
}
|
|
|
|
//// [mergedInterfacesWithConflictingPropertyNames.js]
|
|
"use strict";
|