Skip to content

[FEATURE] Add support for Wildcard and Static Imports #328

@Starexify

Description

@Starexify

In haxe it's possible to use wildcards/static imports such as:

import haxe.*; // import all classes from the `haxe` package
import haxe.Json.*; // import all statics from the Logger class
import haxe.Json.parse; // imports this single static function from `Json`

But in polymod if we try to use them, we get errors:

 ERROR  Error while executing function WorstCParser.onCreate()#0:
Tried to access "Json", but it is not a valid field or method.
 ERROR  Error while executing function WorstCParser.onCreate()#0:
Tried to access "parse", but it is not a valid field or method.

It would be nice to match the haxe behavior if possible

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