FIR: avoid resolve loop between accessor and other members
#KT-48634 Fixed
This commit is contained in:
committed by
teamcityserver
parent
72fa330576
commit
19a75b31f9
+28
@@ -0,0 +1,28 @@
|
||||
class DrawableGrid(var isEnabled: Boolean)
|
||||
|
||||
class My {
|
||||
private val drawableGrid = createDrawableGrid()
|
||||
|
||||
private var useAll = false
|
||||
set(value) {
|
||||
drawableGrid.isEnabled = !value
|
||||
}
|
||||
|
||||
private fun createDrawableGrid() = DrawableGrid(false).apply {
|
||||
if (useAll) -1 else 0
|
||||
}
|
||||
}
|
||||
|
||||
class Your {
|
||||
private val drawableGrid = createDrawableGrid()
|
||||
|
||||
private var useAll
|
||||
get() = false
|
||||
set(value) {
|
||||
drawableGrid.isEnabled = !value
|
||||
}
|
||||
|
||||
private fun createDrawableGrid() = DrawableGrid(false).apply {
|
||||
if (useAll) -1 else 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user