package com.example
@JsonClass(generateAdapter = true)
data class Test(
val foo: String,
) {
private var _bar: String? = null
val bar: String
get() = _bar ?: (foo + "bar").also { _bar = it }
}
Will fail with:
e: file:///path/to/repo/com/example/Test.kt:3:1 property _bar is not visible
Trying to compile this:
Will fail with:
This is using version 0.25.1