jasononeil/dodrugs

Conflict with tink.core.Any

Closed this issue · 0 comments

DoDrugs macros use Any from the haxe Standard library, but when you import Any from tink.CoreApi you get errors:

Code to reproduce:

import dodrugs.Injector;
import tink.core.Any;

class Test {
	public function new() {}

	function testUsingTinkCore() {
		var inj = Injector.create("TestIssue17", [
			var _:String = '',
		]);
	}
}

Error message:

_ : dodrugs.UntypedInjector -> _ : String -> Any should be dodrugs.InjectorMapping<tink.core.Any>
_ : dodrugs.UntypedInjector -> _ : String -> Any should be dodrugs.UntypedInjector -> String -> tink.core.Any
Cannot unify return types
Any should be tink.core.Any
For function argument 'mappings'