DoclerLabs / hexMachina

Releases, issues, documentation, website of hexMachina, framework written in Haxe
http://hexmachina.org
MIT License
44 stars 8 forks source link

Dependency resolution error #260

Closed Neverbirth closed 6 years ago

Neverbirth commented 6 years ago

Using hexMachina 0.34, having something like

import hex.di.mapping.IDependencyOwner;
import tink.CoreApi.Noise;
import tink.CoreApi.Promise;

@Dependency(var myFunc:Float->Float->Promise<Noise>)
class Test implements IDependencyOwner {
    public function new(dependencies:Array<MappingDefinition>) {}
}

And having in a flow file the corresponding:

mapping({fromType: "Float->Float->tink.CoreApi.Promise<tink.CoreApi.Noise>", toValue: someClass.someFunc, withName: "myFunc"})

Results in the following error:

Config.flow:97: lines 97-100 : Missing mappings:[Float->Float->tink.CoreApi.Promise<tink.Noise>|myFunc]

Notice the wrong Noise definition.