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