30 lines
No EOL
1.5 KiB
Text
30 lines
No EOL
1.5 KiB
Text
tests/cases/compiler/importDeclWithClassModifiers.ts(5,8): error TS1044: 'public' modifier cannot appear on a module element.
|
|
tests/cases/compiler/importDeclWithClassModifiers.ts(5,28): error TS2305: Module 'x' has no exported member 'c'.
|
|
tests/cases/compiler/importDeclWithClassModifiers.ts(6,8): error TS1044: 'private' modifier cannot appear on a module element.
|
|
tests/cases/compiler/importDeclWithClassModifiers.ts(6,29): error TS2305: Module 'x' has no exported member 'c'.
|
|
tests/cases/compiler/importDeclWithClassModifiers.ts(7,8): error TS1044: 'static' modifier cannot appear on a module element.
|
|
tests/cases/compiler/importDeclWithClassModifiers.ts(7,28): error TS2305: Module 'x' has no exported member 'c'.
|
|
|
|
|
|
==== tests/cases/compiler/importDeclWithClassModifiers.ts (6 errors) ====
|
|
module x {
|
|
interface c {
|
|
}
|
|
}
|
|
export public import a = x.c;
|
|
~~~~~~
|
|
!!! error TS1044: 'public' modifier cannot appear on a module element.
|
|
~
|
|
!!! error TS2305: Module 'x' has no exported member 'c'.
|
|
export private import b = x.c;
|
|
~~~~~~~
|
|
!!! error TS1044: 'private' modifier cannot appear on a module element.
|
|
~
|
|
!!! error TS2305: Module 'x' has no exported member 'c'.
|
|
export static import c = x.c;
|
|
~~~~~~
|
|
!!! error TS1044: 'static' modifier cannot appear on a module element.
|
|
~
|
|
!!! error TS2305: Module 'x' has no exported member 'c'.
|
|
var b: a;
|
|
|