mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
15 lines
359 B
Kotlin
Vendored
15 lines
359 B
Kotlin
Vendored
// SUGGESTED_NAMES: pair, getT
|
|
// WITH_RUNTIME
|
|
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_DESCRIPTOR: var b: kotlin.Int defined in foo
|
|
// PARAM_DESCRIPTOR: value-parameter a: kotlin.Int defined in foo
|
|
// SIBLING:
|
|
fun foo(a: Int): Int {
|
|
var b: Int = 1
|
|
|
|
val t = <selection> { b += a; b }() </selection>
|
|
println(b)
|
|
|
|
return t
|
|
} |