TypeScript/tests/baselines/reference/ModuleAndFunctionWithSameNameAndCommonRoot.errors.txt
Anders Hejlsberg e4ea5ef1f9 Fix for 954635: Clodule declaration ordering
Fix for 955714: Fundule declaration ordering
2014-07-16 14:23:39 -07:00

36 lines
No EOL
1.1 KiB
Text

==== tests/cases/conformance/internalModules/DeclarationMerging/module.ts (1 errors) ====
module A {
export module Point {
~~~~~~~~~~~~~~~~~~~~~
export var Origin = { x: 0, y: 0 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
~~~~~
!!! Module declaration cannot be in different file from class or function with which it is merged
}
==== 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 {
~~~~~~~~~~~~~~~~~~~~~
export var Origin = { x: 0, y: 0 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
~~~~~
!!! Module declaration cannot be located prior to class or function with which it is merged
// duplicate identifier error
export function Point() {
return { x: 0, y: 0 };
}
}