Conflicts: src/compiler/checker.ts src/compiler/diagnosticInformationMap.generated.ts src/compiler/emitter.ts tests/baselines/reference/es6ImportDefaultBinding.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt
57 lines
No EOL
3.2 KiB
Text
57 lines
No EOL
3.2 KiB
Text
tests/cases/compiler/client.ts(1,1): error TS1191: An import declaration cannot have modifiers.
|
|
tests/cases/compiler/client.ts(3,1): error TS1191: An import declaration cannot have modifiers.
|
|
tests/cases/compiler/client.ts(3,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
|
tests/cases/compiler/client.ts(5,1): error TS1191: An import declaration cannot have modifiers.
|
|
tests/cases/compiler/client.ts(5,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
|
tests/cases/compiler/client.ts(7,1): error TS1191: An import declaration cannot have modifiers.
|
|
tests/cases/compiler/client.ts(7,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
|
tests/cases/compiler/client.ts(7,37): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
|
tests/cases/compiler/client.ts(9,1): error TS1191: An import declaration cannot have modifiers.
|
|
tests/cases/compiler/client.ts(9,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
|
tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot have modifiers.
|
|
tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
|
|
|
|
|
==== tests/cases/compiler/server.ts (0 errors) ====
|
|
|
|
var a = 10;
|
|
export default a;
|
|
|
|
==== tests/cases/compiler/client.ts (12 errors) ====
|
|
export import defaultBinding1, { } from "server";
|
|
~~~~~~
|
|
!!! error TS1191: An import declaration cannot have modifiers.
|
|
export var x1: number = defaultBinding1;
|
|
export import defaultBinding2, { a } from "server";
|
|
~~~~~~
|
|
!!! error TS1191: An import declaration cannot have modifiers.
|
|
~
|
|
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
|
export var x1: number = defaultBinding2;
|
|
export import defaultBinding3, { a as b } from "server";
|
|
~~~~~~
|
|
!!! error TS1191: An import declaration cannot have modifiers.
|
|
~
|
|
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
|
export var x1: number = defaultBinding3;
|
|
export import defaultBinding4, { x, a as y } from "server";
|
|
~~~~~~
|
|
!!! error TS1191: An import declaration cannot have modifiers.
|
|
~
|
|
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
|
~
|
|
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
|
export var x1: number = defaultBinding4;
|
|
export import defaultBinding5, { x as z, } from "server";
|
|
~~~~~~
|
|
!!! error TS1191: An import declaration cannot have modifiers.
|
|
~
|
|
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
|
export var x1: number = defaultBinding5;
|
|
export import defaultBinding6, { m, } from "server";
|
|
~~~~~~
|
|
!!! error TS1191: An import declaration cannot have modifiers.
|
|
~
|
|
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
|
export var x1: number = defaultBinding6;
|
|
|