1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
=== tests/cases/compiler/es3defaultAliasQuoted_file0.ts ===
export class Foo {
>Foo : Foo
static CONSTANT = "Foo";
>CONSTANT : string
>"Foo" : "Foo"
}
export default function assert(value: boolean) {
>assert : (value: boolean) => void
>value : boolean
if (!value) throw new Error("Assertion failed!");
>!value : boolean
>value : boolean
>new Error("Assertion failed!") : Error
>Error : ErrorConstructor
>"Assertion failed!" : "Assertion failed!"
}
=== tests/cases/compiler/es3defaultAliasQuoted_file1.ts ===
import {Foo, default as assert} from "./es3defaultAliasQuoted_file0";
>Foo : typeof Foo
>default : (value: boolean) => void
>assert : (value: boolean) => void
assert(Foo.CONSTANT === "Foo");
>assert(Foo.CONSTANT === "Foo") : void
>assert : (value: boolean) => void
>Foo.CONSTANT === "Foo" : boolean
>Foo.CONSTANT : string
>Foo : typeof Foo
>CONSTANT : string
>"Foo" : "Foo"
|