mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
//// [tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts] ////
|
|
|
|
=== invalidImportAliasIdentifiers.ts ===
|
|
// none of these should work, since non are actually modules
|
|
|
|
var V = 12;
|
|
>V : Symbol(V, Decl(invalidImportAliasIdentifiers.ts, 2, 3))
|
|
|
|
import v = V;
|
|
>v : Symbol(v, Decl(invalidImportAliasIdentifiers.ts, 2, 11))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(invalidImportAliasIdentifiers.ts, 4, 13))
|
|
|
|
name: string;
|
|
>name : Symbol(C.name, Decl(invalidImportAliasIdentifiers.ts, 6, 9))
|
|
}
|
|
|
|
import c = C;
|
|
>c : Symbol(c, Decl(invalidImportAliasIdentifiers.ts, 8, 1))
|
|
|
|
enum E {
|
|
>E : Symbol(E, Decl(invalidImportAliasIdentifiers.ts, 10, 13))
|
|
|
|
Red, Blue
|
|
>Red : Symbol(e.Red, Decl(invalidImportAliasIdentifiers.ts, 12, 8))
|
|
>Blue : Symbol(e.Blue, Decl(invalidImportAliasIdentifiers.ts, 13, 8))
|
|
}
|
|
|
|
import e = E;
|
|
>e : Symbol(e, Decl(invalidImportAliasIdentifiers.ts, 14, 1))
|
|
>E : Symbol(E, Decl(invalidImportAliasIdentifiers.ts, 10, 13))
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(invalidImportAliasIdentifiers.ts, 16, 13))
|
|
|
|
id: number;
|
|
>id : Symbol(I.id, Decl(invalidImportAliasIdentifiers.ts, 18, 13))
|
|
}
|
|
|
|
import i = I;
|
|
>i : Symbol(i, Decl(invalidImportAliasIdentifiers.ts, 20, 1))
|
|
|