2015-04-27 03:31:47 +02:00
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(23,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(24,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(25,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(26,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(27,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(28,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(29,5): error TS1194: Export declarations are not permitted in a namespace.
|
|
|
|
tests/cases/compiler/es5ModuleInternalNamedImports.ts(30,5): error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/compiler/es5ModuleInternalNamedImports.ts (8 errors) ====
|
|
|
|
|
|
|
|
export module M {
|
|
|
|
// variable
|
|
|
|
export var M_V = 0;
|
|
|
|
// interface
|
|
|
|
export interface M_I { }
|
|
|
|
//calss
|
|
|
|
export class M_C { }
|
|
|
|
// instantiated module
|
|
|
|
export module M_M { var x; }
|
|
|
|
// uninstantiated module
|
|
|
|
export module M_MU { }
|
|
|
|
// function
|
|
|
|
export function M_F() { }
|
|
|
|
// enum
|
|
|
|
export enum M_E { }
|
|
|
|
// type
|
|
|
|
export type M_T = number;
|
|
|
|
// alias
|
|
|
|
export import M_A = M_M;
|
|
|
|
|
|
|
|
// Reexports
|
|
|
|
export {M_V as v};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_I as i};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_C as c};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_M as m};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_MU as mu};
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_F as f};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_E as e};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
export {M_A as a};
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1194: Export declarations are not permitted in a namespace.
|
2015-03-25 05:17:11 +01:00
|
|
|
}
|
|
|
|
|