Supported unit return type functions
This commit is contained in:
@@ -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) }
|
||||
Reference in New Issue
Block a user