22 lines
728 B
Text
22 lines
728 B
Text
|
==== tests/cases/compiler/importDeclWithClassModifiers.ts (6 errors) ====
|
||
|
module x {
|
||
|
interface c {
|
||
|
}
|
||
|
}
|
||
|
export public import a = x.c;
|
||
|
~~~~~~
|
||
|
!!! 'public' modifier cannot appear on a module element.
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Module 'x' has no exported member 'c'.
|
||
|
export private import b = x.c;
|
||
|
~~~~~~~
|
||
|
!!! 'private' modifier cannot appear on a module element.
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Module 'x' has no exported member 'c'.
|
||
|
export static import c = x.c;
|
||
|
~~~~~~
|
||
|
!!! 'static' modifier cannot appear on a module element.
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Module 'x' has no exported member 'c'.
|
||
|
var b: a;
|
||
|
|