Can a `callsInPlace` contract fix "Smart cast to '...
# announcements
m
Can a
callsInPlace
contract fix "Smart cast to '…' is impossible, because '…' is a local variable that is captured by a changing closure"? This error comes up when a lambda modifies a variable and I try to rely on smart cast for that variable after the lambda was passed to the function with the contract. Since it can only be called in place the variable cannot be modified anymore at the location of the smart cast. Is that not yet supported by contracts or did I set them up wrong?
Copy code
contract {
	callsInPlace(lambda, InvocationKind.UNKNOWN)
}