==== tests/cases/conformance/internalModules/DeclarationMerging/part1.ts (1 errors) ==== export module A { ~ !!! Cannot compile external modules unless the '--module' flag is provided. export interface Point { x: number; y: number; } export module Utils { export function mirror(p: T) { return { x: p.y, y: p.x }; } } export var Origin: Point = { x: 0, y: 0 }; } ==== tests/cases/conformance/internalModules/DeclarationMerging/part2.ts (3 errors) ==== export module A { // collision with 'Origin' var in other part of merged module export var Origin: Point = { x: 0, y: 0 }; ~~~~~ !!! Cannot find name 'Point'. export module Utils { export class Plane { constructor(public tl: Point, public br: Point) { } ~~~~~ !!! Cannot find name 'Point'. ~~~~~ !!! Cannot find name 'Point'. } } }