2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(5,1): error TS2304: Cannot find name 'V'.
|
|
|
|
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(11,1): error TS2304: Cannot find name 'C'.
|
|
|
|
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(17,1): error TS2304: Cannot find name 'E'.
|
|
|
|
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(23,1): error TS2304: Cannot find name '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;
|
|
|
|
~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'V'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
class C {
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
import c = C;
|
|
|
|
~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'C'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
enum E {
|
|
|
|
Red, Blue
|
|
|
|
}
|
|
|
|
|
|
|
|
import e = E;
|
|
|
|
~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'E'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
interface I {
|
|
|
|
id: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
import i = I;
|
|
|
|
~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'I'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|