Supported unit return type functions

This commit is contained in:
Valentin Kipyatkov
2016-10-24 23:21:17 +03:00
parent 152e77bad3
commit 4c4c85e37a
16 changed files with 191 additions and 34 deletions
@@ -0,0 +1,14 @@
fun <caret>f(p1: Int, p2: Int) {
}
fun <T> doIt(p: () -> T): T = TODO()
fun g(p: String?) {
f(1, 2)
p?.let { f(3, 4) }
}
fun h() = f(5, 6)
fun x() = doIt { f(7, 8) }