Hi, any chance a kind JetBrains dev could help me out?
I'm getting an odd error when I do:
val 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?