I'm trying to use Method.initialize(aClass, aMethod) so I can pass a function in my module as a parameter to another function.
With my module like this:
module myModule {
function myFunction() as Void {
}
}
I would do this:
var m = Method.initialize(myModule, :myFunction);
I get a runtime error that says "could not find symbol mClass"
I'm kind of assuming that a module can work as a Classdef because the documentation gives "Toybox.SensorHistory" as a Classdef example (which I believe is a module, not a class strictly speaking). However, I also tried this just to test my assumption:
class myModule {
public static function myFunction() as Void {
}
}
And I get the same error.