11 lines
201 B
Kotlin
Vendored
11 lines
201 B
Kotlin
Vendored
internal interface I {
|
|
val string: String?
|
|
}
|
|
|
|
internal class C {
|
|
fun foo(i: I, b: Boolean) {
|
|
var result = i.string
|
|
if (b) result = null
|
|
result?.let { print(it) }
|
|
}
|
|
} |