12 lines
191 B
Kotlin
Vendored
12 lines
191 B
Kotlin
Vendored
interface I {
|
|
public fun getString(): String?
|
|
}
|
|
|
|
class C {
|
|
fun foo(i: I) {
|
|
val result = i.getString()
|
|
if (result != null) {
|
|
print(result)
|
|
}
|
|
}
|
|
} |