TypeScript/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.js

24 lines
851 B
TypeScript
Raw Normal View History

2015-03-12 06:55:09 +01:00
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts] ////
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts]
var a = 10;
export default a;
2015-03-12 06:55:09 +01:00
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts]
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
var x: number = defaultBinding;
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.js]
var a = 10;
2015-03-13 01:14:33 +01:00
export default a;
2015-03-12 06:55:09 +01:00
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.js]
import defaultBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
2015-03-12 06:55:09 +01:00
var x = defaultBinding;
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_0.d.ts]
declare var a: number;
export default a;
2015-03-12 06:55:09 +01:00
//// [es6ImportDefaultBindingFollowedWithNamespaceBinding_1.d.ts]