Is there a way to bind generic types like `bind&lt...
# kodein
e
Is there a way to bind generic types like
bind<Subject<*> with singleton { ... }
and get
val subject by instance<Subject<String>>
?
a
@edwardwongtl How would you expect it to work with the following code?
Copy code
bind<Subject<*>> with singleton { ... }

val subject1 by instance<Subject<String>>
val subject2 by instance<Subject<Int>>
e
Well the actual type is not as simple as
Subject<*>
, but
Subject<SomeGeneric<*>>
, so the problem you described will not affect me