Join Slack
Powered by
<@U2N8Y818V> In this case Int not converted to Un...
# announcements
g
gildor
10/12/2016, 10:09 AM
@kmizu
In this case Int not converted to Unit. 1 + 1 will not be translated to return 1 + 1. You can rewrite your functin and call return explicitly:
Copy code
fun foo(): Unit = run<Unit> { return@run 1 + 1 }
In this case your code will not compile
Open in Slack
Previous
Next