Files

28 lines
895 B
Diff

--- old.augmentExportEquals2.errors.txt
+++ new.augmentExportEquals2.errors.txt
@@= skipped -0, +0 lines =@@
-file2.ts(4,16): error TS2671: Cannot augment module './file1' because it resolves to a non-module entity.
-file3.ts(3,8): error TS2503: Cannot find namespace 'x'.
-
-
-==== file3.ts (1 errors) ====
- import x = require("./file1");
- import "./file2";
- let a: x.A; // should not work
- ~
-!!! error TS2503: Cannot find namespace 'x'.
-==== file1.ts (0 errors) ====
- function foo() {}
- export = foo;
-
-==== file2.ts (1 errors) ====
- import x = require("./file1");
-
- // should error since './file1' does not have namespace meaning
- declare module "./file1" {
- ~~~~~~~~~
-!!! error TS2671: Cannot augment module './file1' because it resolves to a non-module entity.
- interface A { a }
- }
-
+<no content>