2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,9): error TS1029: 'export' modifier must precede 'declare' modifier.
|
|
|
|
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS2305: Module 'x' has no exported member 'c'.
|
|
|
|
|
|
|
|
|
2014-11-20 04:22:39 +01:00
|
|
|
==== tests/cases/compiler/importDeclWithDeclareModifier.ts (3 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
module x {
|
|
|
|
interface c {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
declare export import a = x.c;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
2014-07-18 23:06:32 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1029: 'export' modifier must precede 'declare' modifier.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2305: Module 'x' has no exported member 'c'.
|
2014-07-13 01:04:16 +02:00
|
|
|
var b: a;
|
|
|
|
|