TypeScript/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.errors.txt

15 lines
728 B
Text
Raw Normal View History

2015-02-09 17:54:48 +01:00
tests/cases/compiler/client.ts(1,1): error TS1188: An import declaration cannot have modifiers.
tests/cases/compiler/client.ts(1,15): error TS1189: External module '"tests/cases/compiler/server"' has no default export or export assignment.
==== tests/cases/compiler/server.ts (0 errors) ====
export var a = 10;
==== tests/cases/compiler/client.ts (2 errors) ====
export import defaultBinding, * as nameSpaceBinding from "server";
~~~~~~
!!! error TS1188: An import declaration cannot have modifiers.
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/server"' has no default export or export assignment.
export var x: number = nameSpaceBinding.a;