Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ES6 import and export declarations #1983

Merged
merged 49 commits into from
Feb 23, 2015
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
e058189
Rename existing import declaration to ImportEqualsDeclaration
sheetalkamat Jan 27, 2015
5bd8271
Types for the new es6 style import statement parsing
sheetalkamat Jan 28, 2015
4f1b908
Parse import ModuleSpecifier;
sheetalkamat Jan 27, 2015
fdd7032
Parsing for import * as ImportedBinding
sheetalkamat Jan 28, 2015
5eb0094
Parsing for NamedImports
sheetalkamat Jan 28, 2015
69fef6e
Parsing for default binding import syntax
sheetalkamat Jan 28, 2015
d296a10
Rename bindings to namedBindings in ImportClause
sheetalkamat Jan 29, 2015
b0f2265
Code review feedback
sheetalkamat Jan 29, 2015
fc91272
Some refactoring of how import specifiers are parsed as per code revi…
sheetalkamat Jan 29, 2015
89d0146
Tests for more combination of import specifier list
sheetalkamat Jan 29, 2015
484144b
More test cases for incorrect named modules specification
sheetalkamat Jan 29, 2015
c521fe4
Rename ImportStatement to ImportDeclaration
sheetalkamat Jan 30, 2015
d85581b
Do not create Name of the importSpecifier if it isnt identifier, to a…
sheetalkamat Jan 30, 2015
62ed618
Change the name of defaultBinding to name and make ImportClause as De…
sheetalkamat Jan 30, 2015
a9575a5
New Import declaration syntax makes the source file external module
sheetalkamat Jan 30, 2015
36c9cf0
Adding new import nodes to forEachChild
ahejlsberg Feb 6, 2015
35583e6
Process ES6 imports when creating program
ahejlsberg Feb 6, 2015
c6a6619
Support ES6 imports in binder
ahejlsberg Feb 6, 2015
6d0db0f
Resolve ES6 imports in type checker
ahejlsberg Feb 6, 2015
930d11b
Cleaning up a few things
ahejlsberg Feb 6, 2015
89f58d0
Always bind children of import clause
ahejlsberg Feb 6, 2015
7bd14a7
Merge branch 'master' into es6importcheck
ahejlsberg Feb 6, 2015
7e187ef
Correctly set position of import declaration nodes
ahejlsberg Feb 6, 2015
69bd059
CommonJS emit for ES6 import declarations
ahejlsberg Feb 8, 2015
acaea1c
Accepting new baselines
ahejlsberg Feb 8, 2015
c8cc195
AMD emit for ES6 import declarations
ahejlsberg Feb 8, 2015
e30fc41
Accepting new baselines
ahejlsberg Feb 8, 2015
69d47ef
Formatting fixes
ahejlsberg Feb 8, 2015
e47f64c
Checking of ES6 import declarations
ahejlsberg Feb 9, 2015
a075525
Accepting new baselines
ahejlsberg Feb 9, 2015
acfd205
Check that default import references a default export symbol
ahejlsberg Feb 9, 2015
67874b4
Accepting new baselines
ahejlsberg Feb 9, 2015
3523233
Rewrite named imports to reference properties on module instance
ahejlsberg Feb 10, 2015
bbab04e
Accepting new baselines
ahejlsberg Feb 10, 2015
e8cc2bf
Merge branch 'master' into es6Import
ahejlsberg Feb 11, 2015
76ce10d
Addressing CR feedback
ahejlsberg Feb 11, 2015
9cae8e7
Small fix to recording of generated names
ahejlsberg Feb 11, 2015
3b39e9f
Accepting new baselines
ahejlsberg Feb 11, 2015
79be0a7
Support for ES6 export declarations (except export default and export *)
ahejlsberg Feb 13, 2015
6c47c32
Accepting new baselines
ahejlsberg Feb 13, 2015
6ef6217
Allow multiple (renaming) exports for same entity
ahejlsberg Feb 13, 2015
0df69ed
Static checking for export declarations
ahejlsberg Feb 13, 2015
e52ddcb
Accepting new baselines
ahejlsberg Feb 13, 2015
c601210
Re-exported symbols should not be in scope
ahejlsberg Feb 13, 2015
a8152b6
Support for 'export *' declarations
ahejlsberg Feb 15, 2015
cc52dce
Accepting new baselines
ahejlsberg Feb 15, 2015
7cca651
Include globals in check for existing identifiers
ahejlsberg Feb 16, 2015
f0f4ca6
Merge branch 'master' into es6Import
ahejlsberg Feb 23, 2015
27529f1
Addressing CR feedback
ahejlsberg Feb 23, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Accepting new baselines
  • Loading branch information
ahejlsberg committed Feb 9, 2015
commit 67874b4c9edead2ca7db218cf2b10c6249a84c66
1 change: 1 addition & 0 deletions tests/baselines/reference/APISample_compile.js
Original file line number Diff line number Diff line change
@@ -1001,6 +1001,7 @@ declare module "typescript" {
declaredType?: Type;
mapper?: TypeMapper;
referenced?: boolean;
exportAssignChecked?: boolean;
exportAssignSymbol?: Symbol;
unionType?: UnionType;
}
3 changes: 3 additions & 0 deletions tests/baselines/reference/APISample_compile.types
Original file line number Diff line number Diff line change
@@ -3235,6 +3235,9 @@ declare module "typescript" {
referenced?: boolean;
>referenced : boolean

exportAssignChecked?: boolean;
>exportAssignChecked : boolean

exportAssignSymbol?: Symbol;
>exportAssignSymbol : Symbol
>Symbol : Symbol
1 change: 1 addition & 0 deletions tests/baselines/reference/APISample_linter.js
Original file line number Diff line number Diff line change
@@ -1032,6 +1032,7 @@ declare module "typescript" {
declaredType?: Type;
mapper?: TypeMapper;
referenced?: boolean;
exportAssignChecked?: boolean;
exportAssignSymbol?: Symbol;
unionType?: UnionType;
}
3 changes: 3 additions & 0 deletions tests/baselines/reference/APISample_linter.types
Original file line number Diff line number Diff line change
@@ -3379,6 +3379,9 @@ declare module "typescript" {
referenced?: boolean;
>referenced : boolean

exportAssignChecked?: boolean;
>exportAssignChecked : boolean

exportAssignSymbol?: Symbol;
>exportAssignSymbol : Symbol
>Symbol : Symbol
1 change: 1 addition & 0 deletions tests/baselines/reference/APISample_transform.js
Original file line number Diff line number Diff line change
@@ -1033,6 +1033,7 @@ declare module "typescript" {
declaredType?: Type;
mapper?: TypeMapper;
referenced?: boolean;
exportAssignChecked?: boolean;
exportAssignSymbol?: Symbol;
unionType?: UnionType;
}
3 changes: 3 additions & 0 deletions tests/baselines/reference/APISample_transform.types
Original file line number Diff line number Diff line change
@@ -3331,6 +3331,9 @@ declare module "typescript" {
referenced?: boolean;
>referenced : boolean

exportAssignChecked?: boolean;
>exportAssignChecked : boolean

exportAssignSymbol?: Symbol;
>exportAssignSymbol : Symbol
>Symbol : Symbol
1 change: 1 addition & 0 deletions tests/baselines/reference/APISample_watcher.js
Original file line number Diff line number Diff line change
@@ -1070,6 +1070,7 @@ declare module "typescript" {
declaredType?: Type;
mapper?: TypeMapper;
referenced?: boolean;
exportAssignChecked?: boolean;
exportAssignSymbol?: Symbol;
unionType?: UnionType;
}
3 changes: 3 additions & 0 deletions tests/baselines/reference/APISample_watcher.types
Original file line number Diff line number Diff line change
@@ -3504,6 +3504,9 @@ declare module "typescript" {
referenced?: boolean;
>referenced : boolean

exportAssignChecked?: boolean;
>exportAssignChecked : boolean

exportAssignSymbol?: Symbol;
>exportAssignSymbol : Symbol
>Symbol : Symbol
11 changes: 11 additions & 0 deletions tests/baselines/reference/es6ImportDefaultBinding.errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests/cases/compiler/es6ImportDefaultBinding_1.ts(1,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBinding_0"' has no default export or export assignment.


==== tests/cases/compiler/es6ImportDefaultBinding_0.ts (0 errors) ====

export var a = 10;

==== tests/cases/compiler/es6ImportDefaultBinding_1.ts (1 errors) ====
import defaultBinding from "es6ImportDefaultBinding_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBinding_0"' has no default export or export assignment.
9 changes: 0 additions & 9 deletions tests/baselines/reference/es6ImportDefaultBinding.types

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(1,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(1,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(2,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(2,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(3,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(3,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(4,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(4,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(5,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(5,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(6,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(6,8): error TS2300: Duplicate identifier 'defaultBinding'.


@@ -12,22 +18,34 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts(6,8): e
export var x = a;
export var m = a;

==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts (6 errors) ====
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts (12 errors) ====
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(1,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(1,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(2,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(2,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(3,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(3,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(4,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(4,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(5,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(5,8): error TS2300: Duplicate identifier 'defaultBinding'.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,8): error TS2300: Duplicate identifier 'defaultBinding'.


@@ -12,22 +18,34 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(6,
export var x = a;
export var m = a;

==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (6 errors) ====
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (12 errors) ====
import defaultBinding, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
import defaultBinding, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export or export assignment.
~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'defaultBinding'.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts(1,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export or export assignment.


==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts (0 errors) ====

export var a = 10;

==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts (1 errors) ====
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0"' has no default export or export assignment.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts(1,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export or export assignment.


==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts (0 errors) ====

export var a = 10;

==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts (1 errors) ====
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"' has no default export or export assignment.

This file was deleted.

11 changes: 11 additions & 0 deletions tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts(1,8): error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' has no default export or export assignment.


==== tests/cases/compiler/es6ImportDefaultBindingInEs5_0.ts (0 errors) ====

export var a = 10;

==== tests/cases/compiler/es6ImportDefaultBindingInEs5_1.ts (1 errors) ====
import defaultBinding from "es6ImportDefaultBindingInEs5_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportDefaultBindingInEs5_0"' has no default export or export assignment.
9 changes: 0 additions & 9 deletions tests/baselines/reference/es6ImportDefaultBindingInEs5.types

This file was deleted.

Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,10): error TS1141:
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,12): error TS1109: Expression expected.
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,14): error TS2304: Cannot find name 'from'.
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,19): error TS1005: ';' expected.
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,8): error TS1189: External module '"tests/cases/compiler/es6ImportNamedImportParsingError_0"' has no default export or export assignment.
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,24): error TS1005: '{' expected.
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,1): error TS1128: Declaration or statement expected.
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(3,8): error TS1128: Declaration or statement expected.
@@ -19,7 +20,7 @@ tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,20): error TS1005:
export var x = a;
export var m = a;

==== tests/cases/compiler/es6ImportNamedImportParsingError_1.ts (13 errors) ====
==== tests/cases/compiler/es6ImportNamedImportParsingError_1.ts (14 errors) ====
import { * } from "es6ImportNamedImportParsingError_0";
~
!!! error TS1003: Identifier expected.
@@ -32,6 +33,8 @@ tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(4,20): error TS1005:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1005: ';' expected.
import defaultBinding, from "es6ImportNamedImportParsingError_0";
~~~~~~~~~~~~~~
!!! error TS1189: External module '"tests/cases/compiler/es6ImportNamedImportParsingError_0"' has no default export or export assignment.
~~~~
!!! error TS1005: '{' expected.
import , { a } from "es6ImportNamedImportParsingError_0";