39 lines
565 B
JavaScript
39 lines
565 B
JavaScript
//// [invalidImportAliasIdentifiers.ts]
|
|
// none of these should work, since non are actually modules
|
|
|
|
var V = 12;
|
|
|
|
import v = V;
|
|
|
|
class C {
|
|
name: string;
|
|
}
|
|
|
|
import c = C;
|
|
|
|
enum E {
|
|
Red, Blue
|
|
}
|
|
|
|
import e = E;
|
|
|
|
interface I {
|
|
id: number;
|
|
}
|
|
|
|
import i = I;
|
|
|
|
|
|
//// [invalidImportAliasIdentifiers.js]
|
|
// none of these should work, since non are actually modules
|
|
var V = 12;
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|
|
var E;
|
|
(function (E) {
|
|
E[E["Red"] = 0] = "Red";
|
|
E[E["Blue"] = 1] = "Blue";
|
|
})(E || (E = {}));
|