<@U092308M7> another thing, not sure this is actua...
# random
n
@orangy another thing, not sure this is actually a valid idea though: I have a method
X::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)
Copy code
fun X.foo(): Int () = …
fun X.bar():Unit = this.foo() // <- complains about return type error