mys icon indicating copy to clipboard operation
mys copied to clipboard

Globals in default trait method does not work

Open eerimoq opened this issue 5 years ago • 0 comments

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.

eerimoq avatar Feb 03 '21 11:02 eerimoq