Skip to content

Inconsistent use of local import #117

Description

@unode

This was noticed when setting up the motus ngless-contrib module.

The following ngless script runs fine, but I'm not sure it should:

ngless "1.0"
import "motus" version "2.1"

In particular because version 2.1 is not an internal module meaning it should require the local keyword.

Trying to use any of the other modules in ngless-contrib without the local keyword triggers the To import local modules, use "local import" error.

My understanding is that since motus also exists as an internal module (version 1.0) the local keyword check is bypassed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions