20 lines
785 B
Plaintext
20 lines
785 B
Plaintext
=== tests/cases/compiler/es6ImportDefaultBinding_0.ts ===
|
|
|
|
var a = 10;
|
|
>a : Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 1, 3))
|
|
|
|
export default a;
|
|
>a : Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 1, 3))
|
|
|
|
=== tests/cases/compiler/es6ImportDefaultBinding_1.ts ===
|
|
import defaultBinding from "es6ImportDefaultBinding_0";
|
|
>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBinding_1.ts, 0, 6))
|
|
|
|
var x = defaultBinding;
|
|
>x : Symbol(x, Decl(es6ImportDefaultBinding_1.ts, 1, 3))
|
|
>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBinding_1.ts, 0, 6))
|
|
|
|
import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used
|
|
>defaultBinding2 : Symbol(defaultBinding2, Decl(es6ImportDefaultBinding_1.ts, 2, 6))
|
|
|