Skip to content

Disable syntax check for import path literal #224

@fuzzko

Description

@fuzzko

When adding any symbols except . to an import path literal, the compiler will complain about syntax error:

1: invalid import path literal, expected a dotted path like X.Y.Z
import x from "path:x"

This prevents for code reasoning, since the readers had to interpret what x = require "some custom path" is doing, or when they're trying to find specific import of x by searching import ... from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions