In my example, the following does not compile : ``...
# announcements
s
In my example, the following does not compile :
Copy code
fun <T : Any> Test(klass: KClass<T>, value: T) = Test(klass, value)
class Test internal constructor(val klass: KClass<*>, val value: Any) {
}
That's because both the function and the constructor have the same signature.