-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
import hxcoro.CoroRun;
import hxcoro.Coro.*;
class Parent {
public function new() {}
@:coroutine public function test() {
trace("Parent.test() 1");
yield();
}
}
class Child extends Parent {
@:coroutine override function test() {
trace("Child.test()");
super.test();
}
}
function main() {
CoroRun.runScoped(node -> {
new Child().test();
});
}This endlessly calls the two test functions. The problem is that invokeResume from Parent.test invokes Child.test instead because the normal OOP dynamic dispatch comes into play.
I think we have to disallow this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels