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
14 lines
214 B
Kotlin
Vendored
14 lines
214 B
Kotlin
Vendored
var log = ""
|
|
|
|
fun box(a: Any) {
|
|
if (a is String && foo()) {
|
|
log += "OK"
|
|
}
|
|
}
|
|
|
|
inline fun foo(): Boolean {
|
|
log += "foo"
|
|
return true
|
|
}
|
|
|
|
// LINES: 7 4 4 4 10 10 4 11 4 5 5 12 10 10 11 11 * 1 * 1 |