TypeScript/tests/baselines/reference/es6ImportDefaultBindingAmd.types

21 lines
501 B
Plaintext
Raw Normal View History

2015-03-16 02:24:12 +01:00
=== tests/cases/compiler/es6ImportDefaultBindingAmd_0.ts ===
var a = 10;
>a : number
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-16 02:24:12 +01:00
export default a;
>a : number
2015-03-16 02:24:12 +01:00
=== tests/cases/compiler/es6ImportDefaultBindingAmd_1.ts ===
import defaultBinding from "es6ImportDefaultBindingAmd_0";
>defaultBinding : number
2015-03-16 02:24:12 +01:00
var x = defaultBinding;
>x : number
>defaultBinding : number
2015-03-16 02:24:12 +01:00
import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used
>defaultBinding2 : number
2015-03-16 02:24:12 +01:00