baob
09/12/2017, 10:57 AMmarstran
09/12/2017, 10:59 AMfun Int.r() = RationalNumber(this, 1). Kotlin will infer the return type of the function when you use =.baob
09/12/2017, 11:02 AM= however. 👍marstran
09/12/2017, 11:03 AMfun f() { ... }, Kotlin will always infer the return type to be Unit.baob
09/12/2017, 11:04 AM