mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
41 lines
494 B
TypeScript
41 lines
494 B
TypeScript
interface A {
|
|
x: string; // error
|
|
}
|
|
|
|
interface A {
|
|
x: number;
|
|
}
|
|
|
|
module M {
|
|
interface A<T> {
|
|
x: T;
|
|
}
|
|
|
|
interface A<T> {
|
|
x: number; // error
|
|
}
|
|
}
|
|
|
|
module M2 {
|
|
interface A<T> {
|
|
x: T;
|
|
}
|
|
}
|
|
|
|
module M2 {
|
|
interface A<T> {
|
|
x: number; // ok, different declaration space than other M2
|
|
}
|
|
}
|
|
|
|
module M3 {
|
|
export interface A<T> {
|
|
x: T;
|
|
}
|
|
}
|
|
|
|
module M3 {
|
|
export interface A<T> {
|
|
x: number; // error
|
|
}
|
|
} |