2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/innerModExport1.ts(5,5): error TS2304: Cannot find name 'module'.
|
|
|
|
tests/cases/compiler/innerModExport1.ts(5,12): error TS1005: ';' expected.
|
|
|
|
|
|
|
|
|
2014-12-12 12:46:32 +01:00
|
|
|
==== tests/cases/compiler/innerModExport1.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
module Outer {
|
|
|
|
|
|
|
|
// inner mod 1
|
|
|
|
var non_export_var: number;
|
|
|
|
module {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'module'.
|
2014-12-17 00:56:56 +01:00
|
|
|
~
|
|
|
|
!!! error TS1005: ';' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
var non_export_var = 0;
|
|
|
|
export var export_var = 1;
|
|
|
|
|
|
|
|
function NonExportFunc() { return 0; }
|
|
|
|
|
|
|
|
export function ExportFunc() { return 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
export var outer_var_export = 0;
|
|
|
|
export function outerFuncExport() { return 0; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Outer.ExportFunc();
|