mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
808 B
Plaintext
21 lines
808 B
Plaintext
//// [tests/cases/compiler/es6ImportDefaultBinding.ts] ////
|
|
|
|
=== es6ImportDefaultBinding_0.ts ===
|
|
var a = 10;
|
|
>a : Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 0, 3))
|
|
|
|
export default a;
|
|
>a : Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 0, 3))
|
|
|
|
=== 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))
|
|
|