2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/innerModExport2.ts(5,12): error TS1005: ';' expected.
|
|
|
|
tests/cases/compiler/innerModExport2.ts(7,9): error TS1129: Statement expected.
|
|
|
|
tests/cases/compiler/innerModExport2.ts(15,5): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
tests/cases/compiler/innerModExport2.ts(18,1): error TS1128: Declaration or statement expected.
|
|
|
|
tests/cases/compiler/innerModExport2.ts(5,5): error TS2304: Cannot find name 'module'.
|
|
|
|
tests/cases/compiler/innerModExport2.ts(20,7): error TS2339: Property 'NonExportFunc' does not exist on type 'typeof Outer'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/innerModExport2.ts (6 errors) ====
|
|
|
|
module Outer {
|
|
|
|
|
|
|
|
// inner mod 1
|
|
|
|
var non_export_var: number;
|
|
|
|
module {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ';' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'module'.
|
2014-07-13 01:04:16 +02:00
|
|
|
var non_export_var = 0;
|
|
|
|
export var export_var = 1;
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1129: Statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
function NonExportFunc() { return 0; }
|
|
|
|
|
|
|
|
export function ExportFunc() { return 0; }
|
|
|
|
}
|
|
|
|
var export_var: number;
|
|
|
|
|
|
|
|
export var outer_var_export = 0;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
2014-07-13 01:04:16 +02:00
|
|
|
export function outerFuncExport() { return 0; }
|
|
|
|
|
|
|
|
}
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
Outer.NonExportFunc();
|
|
|
|
~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2339: Property 'NonExportFunc' does not exist on type 'typeof Outer'.
|