// !CHECK_TYPE package a import checkSubtype fun emptyList(): List = throw Exception() fun foo(f: T.() -> Unit, l: List): T = throw Exception("$f$l") fun test() { val q = foo(fun Int.() {}, emptyList()) //type inference no information for parameter error checkSubtype(q) foo({}, emptyList()) }