Shouldn’t the compiler warn me when I call a `inli...
# reflect
d
Shouldn’t the compiler warn me when I call a
inline fun <reified T : Any> function(): Class<T> = T::class.java
like so :
val listOfSomething: Class<List<Something>> = function()
, just like it would warn me if I write directly
val listOfSomething: Class<List<Something>> = List<Something>::class.java
? Is this a feature ?