Most specific signaturewith generics in inline function


Probably a bit to early, but it would be great to see that the Kotlin-compiler chooses for the function with the most specific signature, even if generics are in play:

//from external sources
class MyData<T>(val param : T)
class SpecialValue<T>(val value: T)
//our extension-functions
inline fun <reified T> fun1(data: MyData<SpecialValue<T>>, action: T.()->Unit = {}){
inline fun <reified T> fun1(data: MyData<T>, action: T.()->Unit = {}){

fun test(){

The real usecase in tornadoFX :