2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(22,27): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(30,20): error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(59,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(59,37): error TS2307: Cannot find external module 'm1_M3_public'.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(69,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(69,37): error TS2307: Cannot find external module 'm1_M4_private'.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(81,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(81,43): error TS2307: Cannot find external module 'm1_M3_public'.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(82,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(82,43): error TS2307: Cannot find external module 'm1_M4_private'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(106,27): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(114,20): error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(143,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(143,37): error TS2307: Cannot find external module 'm2_M3_public'.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(153,37): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(153,37): error TS2307: Cannot find external module 'm2_M4_private'.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(166,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(166,43): error TS2307: Cannot find external module 'm2_M3_public'.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(167,43): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(167,43): error TS2307: Cannot find external module 'm2_M4_private'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(180,23): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(198,23): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(218,34): error TS2307: Cannot find external module 'glo_M2_public'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(238,34): error TS2307: Cannot find external module 'glo_M4_private'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(251,40): error TS2307: Cannot find external module 'glo_M2_public'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(252,40): error TS2307: Cannot find external module 'glo_M4_private'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(255,23): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(258,45): error TS2304: Cannot find name 'use_glo_M1_public'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(261,39): error TS2304: Cannot find name 'use_glo_M1_public'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(264,40): error TS2307: Cannot find external module 'glo_M2_public'.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(273,38): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(277,45): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(284,16): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(287,46): error TS2304: Cannot find name 'use_glo_M3_private'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(290,40): error TS2304: Cannot find name 'use_glo_M3_private'.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(293,41): error TS2307: Cannot find external module 'glo_M4_private'.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(302,38): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(306,45): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(312,16): error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(314,9): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(314,24): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(319,16): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(322,12): error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(326,9): error TS1029: 'export' modifier must precede 'declare' modifier.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(326,23): error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(328,9): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(328,24): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(333,16): error TS2435: Ambient external modules cannot be nested in other modules.
|
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(341,25): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(344,29): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(350,25): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/privacyImportParseErrors.ts(353,29): error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2015-02-03 00:15:54 +01:00
|
|
|
==== tests/cases/compiler/privacyImportParseErrors.ts (53 errors) ====
|
2014-08-07 23:47:49 +02:00
|
|
|
export module m1 {
|
|
|
|
export module m1_M1_public {
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export function f1() {
|
|
|
|
return new c1;
|
|
|
|
}
|
|
|
|
export var v1 = c1;
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
module m1_M2_private {
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export function f1() {
|
|
|
|
return new c1;
|
|
|
|
}
|
|
|
|
export var v1 = c1;
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare module "m1_M3_public" {
|
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
export function f1();
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export var v1: { new (): c1; };
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "m1_M4_private" {
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
export function f1();
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export var v1: { new (): c1; };
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
import m1_im1_private = m1_M1_public;
|
|
|
|
export var m1_im1_private_v1_public = m1_im1_private.c1;
|
|
|
|
export var m1_im1_private_v2_public = new m1_im1_private.c1();
|
|
|
|
export var m1_im1_private_v3_public = m1_im1_private.f1;
|
|
|
|
export var m1_im1_private_v4_public = m1_im1_private.f1();
|
|
|
|
var m1_im1_private_v1_private = m1_im1_private.c1;
|
|
|
|
var m1_im1_private_v2_private = new m1_im1_private.c1();
|
|
|
|
var m1_im1_private_v3_private = m1_im1_private.f1;
|
|
|
|
var m1_im1_private_v4_private = m1_im1_private.f1();
|
|
|
|
|
|
|
|
|
|
|
|
import m1_im2_private = m1_M2_private;
|
|
|
|
export var m1_im2_private_v1_public = m1_im2_private.c1;
|
|
|
|
export var m1_im2_private_v2_public = new m1_im2_private.c1();
|
|
|
|
export var m1_im2_private_v3_public = m1_im2_private.f1;
|
|
|
|
export var m1_im2_private_v4_public = m1_im2_private.f1();
|
|
|
|
var m1_im2_private_v1_private = m1_im2_private.c1;
|
|
|
|
var m1_im2_private_v2_private = new m1_im2_private.c1();
|
|
|
|
var m1_im2_private_v3_private = m1_im2_private.f1;
|
|
|
|
var m1_im2_private_v4_private = m1_im2_private.f1();
|
|
|
|
|
|
|
|
import m1_im3_private = require("m1_M3_public");
|
2014-11-20 23:27:09 +01:00
|
|
|
~~~~~~~~~~~~~~
|
2014-11-20 04:22:39 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'm1_M3_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var m1_im3_private_v1_public = m1_im3_private.c1;
|
|
|
|
export var m1_im3_private_v2_public = new m1_im3_private.c1();
|
|
|
|
export var m1_im3_private_v3_public = m1_im3_private.f1;
|
|
|
|
export var m1_im3_private_v4_public = m1_im3_private.f1();
|
|
|
|
var m1_im3_private_v1_private = m1_im3_private.c1;
|
|
|
|
var m1_im3_private_v2_private = new m1_im3_private.c1();
|
|
|
|
var m1_im3_private_v3_private = m1_im3_private.f1;
|
|
|
|
var m1_im3_private_v4_private = m1_im3_private.f1();
|
|
|
|
|
|
|
|
import m1_im4_private = require("m1_M4_private");
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-12-17 04:30:08 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'm1_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var m1_im4_private_v1_public = m1_im4_private.c1;
|
|
|
|
export var m1_im4_private_v2_public = new m1_im4_private.c1();
|
|
|
|
export var m1_im4_private_v3_public = m1_im4_private.f1;
|
|
|
|
export var m1_im4_private_v4_public = m1_im4_private.f1();
|
|
|
|
var m1_im4_private_v1_private = m1_im4_private.c1;
|
|
|
|
var m1_im4_private_v2_private = new m1_im4_private.c1();
|
|
|
|
var m1_im4_private_v3_private = m1_im4_private.f1;
|
|
|
|
var m1_im4_private_v4_private = m1_im4_private.f1();
|
|
|
|
|
|
|
|
export import m1_im1_public = m1_M1_public;
|
|
|
|
export import m1_im2_public = m1_M2_private;
|
|
|
|
export import m1_im3_public = require("m1_M3_public");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
!!! error TS2307: Cannot find external module 'm1_M3_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export import m1_im4_public = require("m1_M4_private");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS2307: Cannot find external module 'm1_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module m2 {
|
|
|
|
export module m2_M1_public {
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export function f1() {
|
|
|
|
return new c1;
|
|
|
|
}
|
|
|
|
export var v1 = c1;
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
module m2_M2_private {
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export function f1() {
|
|
|
|
return new c1;
|
|
|
|
}
|
|
|
|
export var v1 = c1;
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare module "m2_M3_public" {
|
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
export function f1();
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export var v1: { new (): c1; };
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "m2_M4_private" {
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
export function f1();
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export var v1: { new (): c1; };
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
import m1_im1_private = m2_M1_public;
|
|
|
|
export var m1_im1_private_v1_public = m1_im1_private.c1;
|
|
|
|
export var m1_im1_private_v2_public = new m1_im1_private.c1();
|
|
|
|
export var m1_im1_private_v3_public = m1_im1_private.f1;
|
|
|
|
export var m1_im1_private_v4_public = m1_im1_private.f1();
|
|
|
|
var m1_im1_private_v1_private = m1_im1_private.c1;
|
|
|
|
var m1_im1_private_v2_private = new m1_im1_private.c1();
|
|
|
|
var m1_im1_private_v3_private = m1_im1_private.f1;
|
|
|
|
var m1_im1_private_v4_private = m1_im1_private.f1();
|
|
|
|
|
|
|
|
|
|
|
|
import m1_im2_private = m2_M2_private;
|
|
|
|
export var m1_im2_private_v1_public = m1_im2_private.c1;
|
|
|
|
export var m1_im2_private_v2_public = new m1_im2_private.c1();
|
|
|
|
export var m1_im2_private_v3_public = m1_im2_private.f1;
|
|
|
|
export var m1_im2_private_v4_public = m1_im2_private.f1();
|
|
|
|
var m1_im2_private_v1_private = m1_im2_private.c1;
|
|
|
|
var m1_im2_private_v2_private = new m1_im2_private.c1();
|
|
|
|
var m1_im2_private_v3_private = m1_im2_private.f1;
|
|
|
|
var m1_im2_private_v4_private = m1_im2_private.f1();
|
|
|
|
|
|
|
|
import m1_im3_private = require("m2_M3_public");
|
2014-11-20 23:27:09 +01:00
|
|
|
~~~~~~~~~~~~~~
|
2014-11-20 04:22:39 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'm2_M3_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var m1_im3_private_v1_public = m1_im3_private.c1;
|
|
|
|
export var m1_im3_private_v2_public = new m1_im3_private.c1();
|
|
|
|
export var m1_im3_private_v3_public = m1_im3_private.f1;
|
|
|
|
export var m1_im3_private_v4_public = m1_im3_private.f1();
|
|
|
|
var m1_im3_private_v1_private = m1_im3_private.c1;
|
|
|
|
var m1_im3_private_v2_private = new m1_im3_private.c1();
|
|
|
|
var m1_im3_private_v3_private = m1_im3_private.f1;
|
|
|
|
var m1_im3_private_v4_private = m1_im3_private.f1();
|
|
|
|
|
|
|
|
import m1_im4_private = require("m2_M4_private");
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-12-17 04:30:08 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'm2_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var m1_im4_private_v1_public = m1_im4_private.c1;
|
|
|
|
export var m1_im4_private_v2_public = new m1_im4_private.c1();
|
|
|
|
export var m1_im4_private_v3_public = m1_im4_private.f1;
|
|
|
|
export var m1_im4_private_v4_public = m1_im4_private.f1();
|
|
|
|
var m1_im4_private_v1_private = m1_im4_private.c1;
|
|
|
|
var m1_im4_private_v2_private = new m1_im4_private.c1();
|
|
|
|
var m1_im4_private_v3_private = m1_im4_private.f1;
|
|
|
|
var m1_im4_private_v4_private = m1_im4_private.f1();
|
|
|
|
|
|
|
|
// Parse error to export module
|
|
|
|
export import m1_im1_public = m2_M1_public;
|
|
|
|
export import m1_im2_public = m2_M2_private;
|
|
|
|
export import m1_im3_public = require("m2_M3_public");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
!!! error TS2307: Cannot find external module 'm2_M3_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export import m1_im4_public = require("m2_M4_private");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2015-02-03 00:15:54 +01:00
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS2307: Cannot find external module 'm2_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export module glo_M1_public {
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export function f1() {
|
|
|
|
return new c1;
|
|
|
|
}
|
|
|
|
export var v1 = c1;
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare module "glo_M2_public" {
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
export function f1();
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export var v1: { new (): c1; };
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
export module glo_M3_private {
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export function f1() {
|
|
|
|
return new c1;
|
|
|
|
}
|
|
|
|
export var v1 = c1;
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare module "glo_M4_private" {
|
|
|
|
~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
export function f1();
|
|
|
|
export class c1 {
|
|
|
|
}
|
|
|
|
export var v1: { new (): c1; };
|
|
|
|
export var v2: c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
import glo_im1_private = glo_M1_public;
|
|
|
|
export var glo_im1_private_v1_public = glo_im1_private.c1;
|
|
|
|
export var glo_im1_private_v2_public = new glo_im1_private.c1();
|
|
|
|
export var glo_im1_private_v3_public = glo_im1_private.f1;
|
|
|
|
export var glo_im1_private_v4_public = glo_im1_private.f1();
|
|
|
|
var glo_im1_private_v1_private = glo_im1_private.c1;
|
|
|
|
var glo_im1_private_v2_private = new glo_im1_private.c1();
|
|
|
|
var glo_im1_private_v3_private = glo_im1_private.f1;
|
|
|
|
var glo_im1_private_v4_private = glo_im1_private.f1();
|
|
|
|
|
|
|
|
|
|
|
|
import glo_im2_private = require("glo_M2_public");
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'glo_M2_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var glo_im2_private_v1_public = glo_im2_private.c1;
|
|
|
|
export var glo_im2_private_v2_public = new glo_im2_private.c1();
|
|
|
|
export var glo_im2_private_v3_public = glo_im2_private.f1;
|
|
|
|
export var glo_im2_private_v4_public = glo_im2_private.f1();
|
|
|
|
var glo_im2_private_v1_private = glo_im2_private.c1;
|
|
|
|
var glo_im2_private_v2_private = new glo_im2_private.c1();
|
|
|
|
var glo_im2_private_v3_private = glo_im2_private.f1;
|
|
|
|
var glo_im2_private_v4_private = glo_im2_private.f1();
|
|
|
|
|
|
|
|
import glo_im3_private = glo_M3_private;
|
|
|
|
export var glo_im3_private_v1_public = glo_im3_private.c1;
|
|
|
|
export var glo_im3_private_v2_public = new glo_im3_private.c1();
|
|
|
|
export var glo_im3_private_v3_public = glo_im3_private.f1;
|
|
|
|
export var glo_im3_private_v4_public = glo_im3_private.f1();
|
|
|
|
var glo_im3_private_v1_private = glo_im3_private.c1;
|
|
|
|
var glo_im3_private_v2_private = new glo_im3_private.c1();
|
|
|
|
var glo_im3_private_v3_private = glo_im3_private.f1;
|
|
|
|
var glo_im3_private_v4_private = glo_im3_private.f1();
|
|
|
|
|
|
|
|
import glo_im4_private = require("glo_M4_private");
|
|
|
|
~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'glo_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var glo_im4_private_v1_public = glo_im4_private.c1;
|
|
|
|
export var glo_im4_private_v2_public = new glo_im4_private.c1();
|
|
|
|
export var glo_im4_private_v3_public = glo_im4_private.f1;
|
|
|
|
export var glo_im4_private_v4_public = glo_im4_private.f1();
|
|
|
|
var glo_im4_private_v1_private = glo_im4_private.c1;
|
|
|
|
var glo_im4_private_v2_private = new glo_im4_private.c1();
|
|
|
|
var glo_im4_private_v3_private = glo_im4_private.f1;
|
|
|
|
var glo_im4_private_v4_private = glo_im4_private.f1();
|
|
|
|
|
|
|
|
// Parse error to export module
|
|
|
|
export import glo_im1_public = glo_M1_public;
|
|
|
|
export import glo_im2_public = glo_M3_private;
|
|
|
|
export import glo_im3_public = require("glo_M2_public");
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'glo_M2_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export import glo_im4_public = require("glo_M4_private");
|
|
|
|
~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'glo_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
export declare module "use_glo_M1_public" {
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
import use_glo_M1_public = glo_M1_public;
|
|
|
|
export var use_glo_M1_public_v1_public: { new (): use_glo_M1_public.c1; };
|
|
|
|
export var use_glo_M1_public_v2_public: use_glo_M1_public;
|
|
|
|
~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'use_glo_M1_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var use_glo_M1_public_v3_public: () => use_glo_M1_public.c1;
|
|
|
|
var use_glo_M1_public_v1_private: { new (): use_glo_M1_public.c1; };
|
|
|
|
var use_glo_M1_public_v2_private: use_glo_M1_public;
|
|
|
|
~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'use_glo_M1_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
var use_glo_M1_public_v3_private: () => use_glo_M1_public.c1;
|
|
|
|
|
|
|
|
import use_glo_M2_public = require("glo_M2_public");
|
|
|
|
~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'glo_M2_public'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var use_glo_M2_public_v1_public: { new (): use_glo_M2_public.c1; };
|
|
|
|
export var use_glo_M2_public_v2_public: use_glo_M2_public;
|
|
|
|
export var use_glo_M2_public_v3_public: () => use_glo_M2_public.c1;
|
|
|
|
var use_glo_M2_public_v1_private: { new (): use_glo_M2_public.c1; };
|
|
|
|
var use_glo_M2_public_v2_private: use_glo_M2_public;
|
|
|
|
var use_glo_M2_public_v3_private: () => use_glo_M2_public.c1;
|
|
|
|
|
|
|
|
module m2 {
|
|
|
|
import errorImport = require("glo_M2_public");
|
2014-11-20 23:27:09 +01:00
|
|
|
~~~~~~~~~~~~~~~
|
2014-11-20 22:48:23 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
import nonerrorImport = glo_M1_public;
|
|
|
|
|
|
|
|
module m5 {
|
|
|
|
import m5_errorImport = require("glo_M2_public");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
import m5_nonerrorImport = glo_M1_public;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
declare module "use_glo_M3_private" {
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
import use_glo_M3_private = glo_M3_private;
|
|
|
|
export var use_glo_M3_private_v1_public: { new (): use_glo_M3_private.c1; };
|
|
|
|
export var use_glo_M3_private_v2_public: use_glo_M3_private;
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'use_glo_M3_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var use_glo_M3_private_v3_public: () => use_glo_M3_private.c1;
|
|
|
|
var use_glo_M3_private_v1_private: { new (): use_glo_M3_private.c1; };
|
|
|
|
var use_glo_M3_private_v2_private: use_glo_M3_private;
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'use_glo_M3_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
var use_glo_M3_private_v3_private: () => use_glo_M3_private.c1;
|
|
|
|
|
|
|
|
import use_glo_M4_private = require("glo_M4_private");
|
|
|
|
~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2307: Cannot find external module 'glo_M4_private'.
|
2014-08-07 23:47:49 +02:00
|
|
|
export var use_glo_M4_private_v1_public: { new (): use_glo_M4_private.c1; };
|
|
|
|
export var use_glo_M4_private_v2_public: use_glo_M4_private;
|
|
|
|
export var use_glo_M4_private_v3_public: () => use_glo_M4_private.c1;
|
|
|
|
var use_glo_M4_private_v1_private: { new (): use_glo_M4_private.c1; };
|
|
|
|
var use_glo_M4_private_v2_private: use_glo_M4_private;
|
|
|
|
var use_glo_M4_private_v3_private: () => use_glo_M4_private.c1;
|
|
|
|
|
|
|
|
module m2 {
|
|
|
|
import errorImport = require("glo_M4_private");
|
2014-11-20 23:27:09 +01:00
|
|
|
~~~~~~~~~~~~~~~~
|
2014-11-20 22:48:23 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
import nonerrorImport = glo_M3_private;
|
|
|
|
|
|
|
|
module m5 {
|
|
|
|
import m5_errorImport = require("glo_M4_private");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
import m5_nonerrorImport = glo_M3_private;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "anotherParseError" {
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
module m2 {
|
|
|
|
declare module "abc" {
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
2014-08-07 23:47:49 +02:00
|
|
|
~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module m2 {
|
|
|
|
module "abc2" {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
module "abc3" {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare export module "anotherParseError2" {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1029: 'export' modifier must precede 'declare' modifier.
|
2014-08-07 23:47:49 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
module m2 {
|
|
|
|
declare module "abc" {
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~
|
|
|
|
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
2014-08-07 23:47:49 +02:00
|
|
|
~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module m2 {
|
|
|
|
module "abc2" {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
module "abc3" {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module m2 {
|
|
|
|
import m3 = require("use_glo_M1_public");
|
2014-11-20 23:27:09 +01:00
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2014-11-20 22:48:23 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
module m4 {
|
|
|
|
var a = 10;
|
|
|
|
import m2 = require("use_glo_M1_public");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export module m3 {
|
|
|
|
import m3 = require("use_glo_M1_public");
|
2014-11-20 23:27:09 +01:00
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2014-11-20 22:48:23 +01:00
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
module m4 {
|
|
|
|
var a = 10;
|
|
|
|
import m2 = require("use_glo_M1_public");
|
2014-12-17 04:30:08 +01:00
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
2014-08-07 23:47:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|