40 lines
No EOL
965 B
Text
40 lines
No EOL
965 B
Text
==== tests/cases/compiler/anonymousModules.ts (13 errors) ====
|
|
module {
|
|
~
|
|
!!! ';' expected.
|
|
~~~~~~
|
|
!!! Cannot find name 'module'.
|
|
export var foo = 1;
|
|
~~~~~~
|
|
!!! Statement expected.
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! Cannot compile external modules unless the '--module' flag is provided.
|
|
|
|
module {
|
|
~
|
|
!!! ';' expected.
|
|
~~~~~~
|
|
!!! Cannot find name 'module'.
|
|
export var bar = 1;
|
|
~~~~~~
|
|
!!! Statement expected.
|
|
~~~
|
|
!!! Individual declarations in merged declaration bar must be all exported or all local.
|
|
}
|
|
~
|
|
!!! Declaration or statement expected.
|
|
|
|
var bar = 2;
|
|
~~~
|
|
!!! Individual declarations in merged declaration bar must be all exported or all local.
|
|
|
|
module {
|
|
~
|
|
!!! ';' expected.
|
|
~~~~~~
|
|
!!! Cannot find name 'module'.
|
|
var x = bar;
|
|
}
|
|
}
|
|
~
|
|
!!! Declaration or statement expected. |