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
165 B
Kotlin
Vendored
14 lines
165 B
Kotlin
Vendored
var log = ""
|
|
|
|
fun box() {
|
|
foo(bar())
|
|
}
|
|
|
|
inline fun foo(x: Int) {
|
|
log += x
|
|
log += x
|
|
}
|
|
|
|
fun bar() = 23
|
|
|
|
// LINES: 5 4 4 8 8 9 9 10 8 8 9 9 12 12 12 * 1 * 1 |