hexMachina icon indicating copy to clipboard operation
hexMachina copied to clipboard

Injector doesn't work with neko target? (1.0.0-alpha.7)

Open CrazyFlasher opened this issue 6 years ago • 0 comments

 ERROR: massive.munit.UnhandledException: $nargs at AppFactoryTest#testOfPoolObjectsAreUnique at Type::createInstance (103)
        at hex.di.Injector::instantiateUnmapped (153)
        at hex.di.provider.ClassProvider::getResult (18)
        at hex.di.mapping.InjectionMapping::getResult (38)
        at hex.di.Injector::getInstance (80)
var f:Injector = new Injector();
f.mapToType(IMockPool_1, MockPool_1);
f.getInstance(IMockPool_1);
package mock.obj;

interface IMockPool_1
{
    var value(get, never):Int;
}
package mock.obj;

class MockPool_1 implements IMockPool_1
{
    public var value(get, never):Int;

    private function get_value():Int
    {
        return 1;
    }
}

CrazyFlasher avatar Oct 21 '19 20:10 CrazyFlasher