Hi. How do you use `isInitialized`? I can't work i...
# getting-started
Hi. How do you use
? I can't work it out from https://kotlinlang.org/docs/reference/properties.html#checking-whether-a-lateinit-var-is-initialized-since-12. I use
1.3.31 with JRE 1.8 as a REPL:
Copy code
lateinit var i:Integer;
i::isInitialized //or:
i.isInitialized // both fail with:
// error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
// @SinceKotlin @InlineOnly public val @receiver:AccessibleLateinitPropertyLiteral KProperty0<*>.isInitialized: Boolean defined in kotlin

::i.isInitialized // -> error: backing field of 'var i: Integer' is not accessible at this point