Supported unit return type functions
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun <T> doIt(p: () -> T): T = TODO()
|
||||
|
||||
fun g(p: String?) {
|
||||
|
||||
p?.let { }
|
||||
}
|
||||
|
||||
fun h() = Unit
|
||||
|
||||
fun x() = doIt { }
|
||||
Reference in New Issue
Block a user