didSet not being called

(Paul Stevenson) #1

we have had several cases where properties with “didSet” handlers were being set in swift code, but in the android version the didSet did not execute.

from the reconstituted byte code, it looks like when a property value is set in a closure, you guys sometimes compile that to set the backing variable directly instead of calling the setter…
obviously this results in the didSet not firing.

In our case, we often don’t have a setter, but we do have a didSet…
in swift that works fine.

(marc hoffman) #2

any chance of a testcase?