TypeScript/tests/baselines/reference/anonymousModules.errors.txt
2014-07-25 11:15:19 -07:00

40 lines
965 B
Plaintext

==== 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.