Fix LateinitMutableProperty

This commit is contained in:
Him188 2021-06-05 15:00:23 +08:00
parent e788aa09f7
commit a781941ede

View File

@ -39,7 +39,7 @@ private class LateinitMutableProperty<T>(
this.value.compareAndSet(UNINITIALIZED, value) // setValue prevails
this.initializer = null
value
} else v as T
} else this.value.value as T
}
else -> v as T
}