Fix for KT-7999: Wrong result when use nullable types as reified parameter, KT-8043: Unsafe cast to reified parameter throws NPE instead of TypeCastException
#KT-7999 Fixed #KT-8043 Fixed ~
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
class A
|
||||
|
||||
fun call(a: String, b: String, c: String, d: String, e: String, f: Any) {
|
||||
|
||||
}
|
||||
|
||||
inline fun <reified T: Any> Any?.foo(): T {
|
||||
call("1", "2", "3", "4", "5", this as T)
|
||||
return this as T
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user