[K2] isUsedAsExpression analysis

This commit is contained in:
Kristoffer Andersen
2022-08-01 17:46:54 +02:00
committed by teamcity
parent d9701c71b7
commit f765457e51
673 changed files with 11862 additions and 10 deletions
@@ -0,0 +1,12 @@
fun builder(block: () -> Unit): Boolean {
block()
return true
}
fun unitFunction() {
return
}
fun test(b: Boolean) {
builder { <expr>unitFunction()</expr> }
}