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