mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
22 lines
510 B
Plaintext
Vendored
22 lines
510 B
Plaintext
Vendored
Resolve target: value-parameter s: kotlin.String?
|
|
----------------------------------------------
|
|
fun foo(s: String?, b1: Boolean, b2: Boolean) {
|
|
x(
|
|
if (b1) {
|
|
print(s!!.length)
|
|
1
|
|
} else {
|
|
if (b2) {
|
|
print(s!!.length + 1)
|
|
}
|
|
else {
|
|
print(s!!.length - 1)
|
|
}
|
|
2
|
|
},
|
|
<caret>s
|
|
)
|
|
}
|
|
|
|
fun x(p1: Int, p2: String) { }
|