-
Notifications
You must be signed in to change notification settings - Fork 1
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
Binding type parameter #8
Comments
I came up with a workaround:
Not sure if this is how I am supposed to be using this though. |
Hi, what are you trying to bind really ? (I guess that your are working with Kodein (you are on Kaverit repo here). Kodein should have everything you need. If you are trying to bind an existing object, you can do: class Foo
val obj = Foo()
val di = DI {
bindInstance { obj }
}
val injectedFoo : Foo by di.instance()
assert(obj == injectedFoo) |
O sorry my bad, I'll post to the Kodein repo |
duplicate: kosi-libs/Kodein#449 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't figure out a way to bind a type parameter:
Is this possible?
The text was updated successfully, but these errors were encountered: