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,10 @@
fun <T> doIt(p: () -> T): T = TODO()
fun g(p: String?) {
p?.let { }
}
fun h() = Unit
fun x() = doIt { }