20 lines
489 B
Text
20 lines
489 B
Text
=== tests/cases/compiler/es6ImportDefaultBinding_0.ts ===
|
|
|
|
var a = 10;
|
|
>a : number
|
|
>10 : number
|
|
|
|
export default a;
|
|
>a : number
|
|
|
|
=== tests/cases/compiler/es6ImportDefaultBinding_1.ts ===
|
|
import defaultBinding from "es6ImportDefaultBinding_0";
|
|
>defaultBinding : number
|
|
|
|
var x = defaultBinding;
|
|
>x : number
|
|
>defaultBinding : number
|
|
|
|
import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used
|
|
>defaultBinding2 : number
|
|
|