Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions