mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
589 B
TypeScript
12 lines
589 B
TypeScript
//// [tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts] ////
|
|
|
|
//// [es6ImportNamedImportIdentifiersParsing.ts]
|
|
import { yield } from "somemodule"; // Allowed
|
|
import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
|
|
import { yield as default } from "somemodule"; // error to use default as binding name
|
|
import { default as yield } from "somemodule"; // no error
|
|
import { default as default } from "somemodule"; // default as is ok, error of default binding name
|
|
|
|
//// [es6ImportNamedImportIdentifiersParsing.js]
|
|
export {};
|