You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`class LazyProperty(val initializer: () -> Int) {
private val lazyValue : Int? = null // Trying to re-assign val property, should be changed to var property
get() {
if(field == null)
field = initializer()
return field
}
val lazy: Int get() = lazyValue!!
}`
The text was updated successfully, but these errors were encountered:
`class LazyProperty(val initializer: () -> Int) {
private val lazyValue : Int? = null // Trying to re-assign val property, should be changed to var property
get() {
if(field == null)
field = initializer()
}`
The text was updated successfully, but these errors were encountered: