I have a scenario where I have a generic interface and wish to bind multiple implementations of that interface in Guice. Normally in Java this would mean TypeLiterals, how would this be done in Kotlin?
bind(TypeLiteral<Resolver<RealObject>>(){}).to(RealResolver::class.java) This gives a compiler error of: cannot access <init>: it is public/*package*/ in 'TypeLiteral'
There is a TypeLiteral.get() method however I cannot seem to get that to work either