mirror of
https://github.com/swc-project/swc.git
synced 2025-01-05 12:03:47 +03:00
28 lines
471 B
TypeScript
28 lines
471 B
TypeScript
|
// @filename: module.ts
|
||
|
module A {
|
||
|
export module Point {
|
||
|
export var Origin = { x: 0, y: 0 };
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @filename: function.ts
|
||
|
module A {
|
||
|
// duplicate identifier error
|
||
|
export function Point() {
|
||
|
return { x: 0, y: 0 };
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @filename: simple.ts
|
||
|
module B {
|
||
|
|
||
|
export module Point {
|
||
|
export var Origin = { x: 0, y: 0 };
|
||
|
}
|
||
|
|
||
|
// duplicate identifier error
|
||
|
export function Point() {
|
||
|
return { x: 0, y: 0 };
|
||
|
}
|
||
|
}
|