Code reference detail
validating.test.ts:allows local idea when qualified import uses an alias
packages/language/test/validating.test.ts:allows local idea when qualified import uses an alias
| Idea | Status | Tags | Summary |
|---|---|---|---|
| import_keywords | The keywords import, from, and as are reserved for import statements. Import keywords may also appear as ordinary words in idea body text when not at statement start. | ||
| import_tokenisation | if an import is given an alias, then the base name is still available as a variable name and should not cause a conflict. Only the alias binds in the importing file; the imported idea's base name may be reused for a local idea. e. g. The same rule applies to qualified imports with `as`. Unaliased imports still bind the idea name and conflict with a local idea of that name. Related: ["../extension/syntax/features-syntax.rq".sensible_alias_support]. |
Reference labels
../../packages/language/test/validating.test.ts:allows local idea when qualified import uses an alias