bachhuberdesign
08/15/2017, 1:50 AMoverride inline fun <reified T> foo(key: String, value: T): T {
}
but it's not possible since you can't inline
an interface functionvoddan
08/15/2017, 4:03 AMT
for. The code in your snippet works just the same if you remove reified
bachhuberdesign
08/15/2017, 4:06 AMvalue::class.java
directly (which only works if it's reified). I guess I could pass the class as a parameter but I would like to keep the client code as simple as possiblekirillrakhman
08/15/2017, 6:41 AMinline
extension functions for your interfacevoddan
08/15/2017, 8:43 AMfun <T: Any> foo(value: T) = value::class.java