noctarius
01/11/2017, 4:25 PMX::foo(): Int
and I want to use it in a simple function which returns Unit
, obviously it complains about Int != Unit, but wouldn’t it be convenient to just ignore the return value in this case (I guess it works that way in Java lambdas)
fun X.foo(): Int () = …
fun X.bar():Unit = this.foo() // <- complains about return type error