ca63717124
- elvis expression with complex RHS - destructuring declarations - decomposition of `var` statement (for example, in case of inline destructuring functions) - `is` LHS &&/|| inline fun RHS - argument assignment to temporary var on inline call site - assignment of `next()` result to temporary var in `for` expression - rethrow statement in exception handler
12 lines
211 B
Kotlin
Vendored
12 lines
211 B
Kotlin
Vendored
var log = ""
|
|
|
|
fun box(x: String?) {
|
|
log +=
|
|
x
|
|
?:
|
|
try { foo() } finally { log += "finally" }
|
|
}
|
|
|
|
fun foo() = "bar"
|
|
|
|
// LINES: 8 7 7 4 4 4 5 5 7 7 7 7 * 5 4 5 10 10 10 * 1 * 1 |