16 lines
No EOL
539 B
Text
16 lines
No EOL
539 B
Text
==== tests/cases/compiler/importDeclWithDeclareModifier.ts (4 errors) ====
|
|
module x {
|
|
interface c {
|
|
}
|
|
}
|
|
declare export import a = x.c;
|
|
~~~~~~~
|
|
!!! A 'declare' modifier cannot be used with an import declaration.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Cannot compile external modules unless the '--module' flag is provided.
|
|
~~~~~~
|
|
!!! 'export' modifier must precede 'declare' modifier.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Module 'x' has no exported member 'c'.
|
|
var b: a;
|
|
|