Hi, any chance a kind JetBrains dev could help me ...
# compiler
a
Hi, any chance a kind JetBrains dev could help me out? I'm getting an odd error when I do:
Copy code
val getterSymbol = cls.getPropertyGetter(propertyName)
with (builder) {
  irCall(getterSymbol).apply {
    dispatchReceiver = parent
  }
}
The error is:
Copy code
Caused by: java.lang.IllegalStateException: IrFieldSymbolImpl is unbound. Signature: null
	... 285 more
Strange thing is, it only happens when I do something like this:
Copy code
doSomething {
  val myClassInst = MyClass(myProperty = "foobar")
  doSomethingElse {
    callToTransform(myClassInst)
  }
}
When the variables are lined up together like so:
Copy code
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?
d
Not sure about the particular reason, but you can set a breakpoint in a place where the symbol becomes bound (link), debug the case where everything works. It should point to the reason why the first case doesn't