NamedImports : { } { ImportsList } { ImportsList , } ImportsList : ImportSpecifier ImportsList , ImportSpecifier ImportSpecifier : ImportedBinding IdentifierName as ImportedBinding Conflicts: src/compiler/parser.ts
32 lines
No EOL
1.6 KiB
Text
32 lines
No EOL
1.6 KiB
Text
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(1,10): error TS1003: Identifier expected.
|
|
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,22): error TS1005: '=' expected.
|
|
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,24): error TS2304: Cannot find name 'from'.
|
|
tests/cases/compiler/es6ImportNamedImportParsingError_1.ts(2,29): error TS1005: ';' expected.
|
|
|
|
|
|
==== tests/cases/compiler/es6ImportNamedImportParsingError_0.ts (0 errors) ====
|
|
|
|
export var a = 10;
|
|
export var x = a;
|
|
export var m = a;
|
|
|
|
==== tests/cases/compiler/es6ImportNamedImportParsingError_1.ts (7 errors) ====
|
|
import { * } from "es6ImportNamedImportParsingError_0";
|
|
~
|
|
!!! error TS1003: Identifier expected.
|
|
~
|
|
!!! error TS1109: Expression expected.
|
|
~~~~
|
|
!!! error TS2304: Cannot find name 'from'.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1005: ';' expected.
|
|
import defaultBinding, from "es6ImportNamedImportParsingError_0";
|
|
~
|
|
!!! error TS1005: '=' expected.
|
|
~~~~
|
|
!!! error TS2304: Cannot find name 'from'.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1005: ';' expected. |