2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/externalModules/foo1.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
tests/cases/conformance/externalModules/foo2.ts(2,14): error TS1005: ';' expected.
|
|
|
|
tests/cases/conformance/externalModules/foo2.ts(2,15): error TS2304: Cannot find name 'x'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/externalModules/foo2.ts (2 errors) ====
|
|
|
|
import foo1 = require('./foo1');
|
|
|
|
export = foo1.x; // Error, export assignment must be identifier only
|
|
|
|
~
|
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 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo1.ts (1 errors) ====
|
|
|
|
export function x(){
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
return true;
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
}
|
|
|
|
~
|
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
|
|
|
|