f318b5969d
Substitution of type arguments to non-reified type parameters may lead to accidental reification, which should not be done (see ^KT-60174 for examples). So, we should erase them, except the few cases. ^KT-60174: Fixed ^KT-60175: Fixed
7 lines
176 B
Kotlin
Vendored
7 lines
176 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
inline fun <T> f(arr: Array<T>, func: (T) -> Int): Int = func(arr[0])
|
|
|
|
// FILE: 2.kt
|
|
|
|
fun box(): String = ('O' + f(arrayOf(""), String::length)).toString() + "K" |