mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
23 lines
329 B
Kotlin
Vendored
23 lines
329 B
Kotlin
Vendored
package a
|
|
|
|
import java.util.HashSet
|
|
|
|
val a: MutableSet<String>? = null
|
|
get() {
|
|
if (a == null) {
|
|
field = HashSet()
|
|
}
|
|
return a
|
|
}
|
|
|
|
class R {
|
|
val b: String? = null
|
|
get() {
|
|
if (b == null) {
|
|
field = "b"
|
|
}
|
|
return b
|
|
}
|
|
}
|
|
|