Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CrazyFlasher opened this issue Oct 21, 2019 · 0 comments
Open

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

CrazyFlasher opened this issue Oct 21, 2019 · 0 comments

Comments

@CrazyFlasher
Copy link

 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 CrazyFlasher changed the title Injector doesn't work with neko target? Injector doesn't work with neko target? (1.0.0-alpha.7) Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant