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
{{ message }}
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
When I run the "correct" lazy property example on Android Studio, I get an error for get: unresolved reference, none of the following candidates..."
Works ok online.
class LazyProperty(val initializer: () -> Int) {
var value: Int? = null
val lazy: Int
get() {
if (value == null) {
value = initializer()
}
return value!!
}
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I run the "correct" lazy property example on Android Studio, I get an error for
get
: unresolved reference, none of the following candidates..."Works ok online.
The text was updated successfully, but these errors were encountered: