|
| 1 | +=== tests/cases/compiler/es3defaultAliasQuoted_file0.ts === |
| 2 | + |
| 3 | +export class Foo { |
| 4 | +>Foo : Symbol(Foo, Decl(es3defaultAliasQuoted_file0.ts, 0, 0)) |
| 5 | + |
| 6 | + static CONSTANT = "Foo"; |
| 7 | +>CONSTANT : Symbol(Foo.CONSTANT, Decl(es3defaultAliasQuoted_file0.ts, 1, 18)) |
| 8 | +} |
| 9 | + |
| 10 | +export default function assert(value: boolean) { |
| 11 | +>assert : Symbol(assert, Decl(es3defaultAliasQuoted_file0.ts, 3, 1)) |
| 12 | +>value : Symbol(value, Decl(es3defaultAliasQuoted_file0.ts, 5, 31)) |
| 13 | + |
| 14 | + if (!value) throw new Error("Assertion failed!"); |
| 15 | +>value : Symbol(value, Decl(es3defaultAliasQuoted_file0.ts, 5, 31)) |
| 16 | +>Error : Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) |
| 17 | +} |
| 18 | + |
| 19 | +=== tests/cases/compiler/es3defaultAliasQuoted_file1.ts === |
| 20 | +import {Foo, default as assert} from "./es3defaultAliasQuoted_file0"; |
| 21 | +>Foo : Symbol(Foo, Decl(es3defaultAliasQuoted_file1.ts, 0, 8)) |
| 22 | +>default : Symbol(assert, Decl(es3defaultAliasQuoted_file1.ts, 0, 12)) |
| 23 | +>assert : Symbol(assert, Decl(es3defaultAliasQuoted_file1.ts, 0, 12)) |
| 24 | + |
| 25 | +assert(Foo.CONSTANT === "Foo"); |
| 26 | +>assert : Symbol(assert, Decl(es3defaultAliasQuoted_file1.ts, 0, 12)) |
| 27 | +>Foo.CONSTANT : Symbol(Foo.CONSTANT, Decl(es3defaultAliasQuoted_file0.ts, 1, 18)) |
| 28 | +>Foo : Symbol(Foo, Decl(es3defaultAliasQuoted_file1.ts, 0, 8)) |
| 29 | +>CONSTANT : Symbol(Foo.CONSTANT, Decl(es3defaultAliasQuoted_file0.ts, 1, 18)) |
| 30 | + |
0 commit comments