ReenteringLazyValueComputationException when accessing property with same name as val

Here’s a strange one.

data class Thing(
	val a: String
)
open class Ref<T> {
	companion object : Ref<Thing>()
    
    // Fails: org.jetbrains.kotlin.util.ReenteringLazyValueComputationException
	val xyz = Thing::xyz
    
    // Works
	val b = Thing::a
}

https://play.kotlinlang.org/#eyJ2ZXJzaW9uIjoiMS4zLjMxIiwiY29kZSI6ImRhdGEgY2xhc3MgVGhpbmcoXG5cdHZhbCBhOiBTdHJpbmdcbilcbm9wZW4gY2xhc3MgUmVmPFQ+IHtcblx0Y29tcGFuaW9uIG9iamVjdCA6IFJlZjxUaGluZz4oKVxuICAgIFxuICAgIC8vIEZhaWxzOiBvcmcuamV0YnJhaW5zLmtvdGxpbi51dGlsLlJlZW50ZXJpbmdMYXp5VmFsdWVDb21wdXRhdGlvbkV4Y2VwdGlvblxuXHR2YWwgeHl6ID0gVGhpbmc6Onh5elxuICAgIFxuICAgIC8vIFdvcmtzXG5cdHZhbCBiID0gVGhpbmc6OmFcbn0iLCJwbGF0Zm9ybSI6ImphdmEiLCJhcmdzIjoiIn0=

Please report bugs to the bug tracker: http://kotl.in/issue

For reference: https://youtrack.jetbrains.com/issue/KT-35429