TypeScript/tests/baselines/reference/invalidImportAliasIdentifiers.errors.txt

39 lines
1.3 KiB
Plaintext
Raw Normal View History

tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(5,12): error TS2503: Cannot find namespace 'V'.
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(11,12): error TS2503: Cannot find namespace 'C'.
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(17,12): error TS2503: Cannot find namespace 'E'.
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(23,12): error TS2503: Cannot find namespace 'I'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts (4 errors) ====
// none of these should work, since non are actually modules
var V = 12;
import v = V;
2015-03-02 21:21:53 +01:00
~
!!! error TS2503: Cannot find namespace 'V'.
2014-07-13 01:04:16 +02:00
class C {
name: string;
}
import c = C;
2015-03-02 21:21:53 +01:00
~
!!! error TS2503: Cannot find namespace 'C'.
2014-07-13 01:04:16 +02:00
enum E {
Red, Blue
}
import e = E;
2015-03-02 21:21:53 +01:00
~
!!! error TS2503: Cannot find namespace 'E'.
2014-07-13 01:04:16 +02:00
interface I {
id: number;
}
import i = I;
2015-03-02 21:21:53 +01:00
~
!!! error TS2503: Cannot find namespace 'I'.
2014-07-13 01:04:16 +02:00