Extract refactoring: Make an extracted function 'inline' if any of its type parameters are reified (#KT-23983)

This commit is contained in:
Yan Zhulanow
2018-04-24 19:33:01 +03:00
parent 90bffbf4c8
commit e958a9771f
6 changed files with 52 additions and 2 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
inline fun <reified T : CharSequence, reified U, X> foo() {
__dummyTestFun__<T, U>()
}
inline fun <reified T : CharSequence, reified U> __dummyTestFun__() {
listOf(T::class, U::class)
}