32 lines
1 KiB
Plaintext
32 lines
1 KiB
Plaintext
==== tests/cases/conformance/internalModules/DeclarationMerging/module.ts (1 errors) ====
|
|
module A {
|
|
export module Point {
|
|
~~~~~
|
|
!!! A module declaration cannot be in a different file from a class or function with which it is merged
|
|
export var Origin = { x: 0, y: 0 };
|
|
}
|
|
}
|
|
|
|
==== tests/cases/conformance/internalModules/DeclarationMerging/function.ts (0 errors) ====
|
|
module A {
|
|
// duplicate identifier error
|
|
export function Point() {
|
|
return { x: 0, y: 0 };
|
|
}
|
|
}
|
|
|
|
==== tests/cases/conformance/internalModules/DeclarationMerging/simple.ts (1 errors) ====
|
|
module B {
|
|
|
|
export module Point {
|
|
~~~~~
|
|
!!! A module declaration cannot be located prior to a class or function with which it is merged
|
|
export var Origin = { x: 0, y: 0 };
|
|
}
|
|
|
|
// duplicate identifier error
|
|
export function Point() {
|
|
return { x: 0, y: 0 };
|
|
}
|
|
}
|
|
|