Alexander Ioffe
04/16/2025, 2:14 AMval getterSymbol = cls.getPropertyGetter(propertyName)
with (builder) {
irCall(getterSymbol).apply {
dispatchReceiver = parent
}
}
The error is:
Caused by: java.lang.IllegalStateException: IrFieldSymbolImpl is unbound. Signature: null
... 285 more
Strange thing is, it only happens when I do something like this:
doSomething {
val myClassInst = MyClass(myProperty = "foobar")
doSomethingElse {
callToTransform(myClassInst)
}
}
When the variables are lined up together like so:
doSomething {
doSomethingElse {
val myClassInst = MyClass(myProperty = "foobar")
callToTransform(myClassInst)
}
}
Then it's fine.
What am I missing here? Why does one situation work and not the other?dmitriy.novozhilov
04/16/2025, 8:40 AM