Skip to content

Globals in default trait method does not work #44

@eerimoq

Description

@eerimoq

Imported trait with default method using global variable does not work. Must change transpiler to generate default trait methods when generating containing module, not adding to class and generate in class context.

There are some ideas as a todo in tests/files/traits.mys.

Also, default trait methods may only use methods defined in the trait, and not class members and methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions