vlastachu
05/05/2017, 11:44 AMlateinit var handler: (Any) -> Unit
fun <T:Any> setHandler_(handler: (T) -> Unit) {
this.handler = handler //Type mismatch
}
Why compiler (ide) can't cast incoming function? I'm interesting in: is it fundamental problem or current limitation of cotlin compiler?