36 lines
1,007 B
TypeScript
36 lines
1,007 B
TypeScript
//// [tests/cases/compiler/es3defaultAliasIsQuoted.ts] ////
|
|
|
|
//// [es3defaultAliasQuoted_file0.ts]
|
|
export class Foo {
|
|
static CONSTANT = "Foo";
|
|
}
|
|
|
|
export default function assert(value: boolean) {
|
|
if (!value) throw new Error("Assertion failed!");
|
|
}
|
|
|
|
//// [es3defaultAliasQuoted_file1.ts]
|
|
import {Foo, default as assert} from "./es3defaultAliasQuoted_file0";
|
|
assert(Foo.CONSTANT === "Foo");
|
|
|
|
//// [es3defaultAliasQuoted_file0.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var Foo = /** @class */ (function () {
|
|
function Foo() {
|
|
}
|
|
Foo.CONSTANT = "Foo";
|
|
return Foo;
|
|
}());
|
|
exports.Foo = Foo;
|
|
function assert(value) {
|
|
if (!value)
|
|
throw new Error("Assertion failed!");
|
|
}
|
|
exports["default"] = assert;
|
|
//// [es3defaultAliasQuoted_file1.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var es3defaultAliasQuoted_file0_1 = require("./es3defaultAliasQuoted_file0");
|
|
es3defaultAliasQuoted_file0_1["default"](es3defaultAliasQuoted_file0_1.Foo.CONSTANT === "Foo");
|