mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +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 };
|
|
}
|
|
}
|