2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/anonymousModules.ts(1,8): error TS1005: ';' expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(2,2): error TS1129: Statement expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(2,2): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(4,9): error TS1005: ';' expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(5,3): error TS1129: Statement expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(6,2): error TS1128: Declaration or statement expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(10,9): error TS1005: ';' expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(13,1): error TS1128: Declaration or statement expected.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(1,1): error TS2304: Cannot find name 'module'.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(4,2): error TS2304: Cannot find name 'module'.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(5,14): error TS2395: Individual declarations in merged declaration bar must be all exported or all local.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(8,6): error TS2395: Individual declarations in merged declaration bar must be all exported or all local.
|
|
|
|
tests/cases/compiler/anonymousModules.ts(10,2): error TS2304: Cannot find name 'module'.
|
|
|
|
|
|
|
|
|
2014-07-25 01:44:52 +02:00
|
|
|
==== tests/cases/compiler/anonymousModules.ts (13 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
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
|
|
|
export var foo = 1;
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1129: Statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~
|
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
|
|
|
|
|
|
|
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
|
|
|
export var bar = 1;
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1129: Statement expected.
|
2014-07-25 01:44:52 +02:00
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2395: Individual declarations in merged declaration bar must be all exported or all local.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
var bar = 2;
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2395: Individual declarations in merged declaration bar must be all exported or all local.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
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 x = bar;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|