Fix for KT-6990: inline reified doesn't inline call in some cases
#KT-6990 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import test.*
|
||||
|
||||
class OK
|
||||
|
||||
fun box(): String {
|
||||
return inlineMeIfYouCan<OK>()!!
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
public inline fun <reified T : Any> inlineMeIfYouCan(): String? =
|
||||
{
|
||||
f {
|
||||
T::class.java.getName()
|
||||
}
|
||||
}()
|
||||
|
||||
inline fun f(x: () -> String) = x()
|
||||
Reference in New Issue
Block a user