Closed WillsterJohnsonAtZenesis closed 2 months ago
A lot of tests are not working any longer ....
@WillsterJohnsonAtZenesis @johnspackman Is it fine to suppress tests instead of fixing problem? Or these tests/asserts no more needed? Then they have to be removed then.
@goldim the test cases that were changed are just reverting to what they were before 50ae4c5
(#10645), they were only changed then to 'cover up' an implementation quirk that is no longer there.
The issues fixed are best described visually.
Take the following class, which contains an anonymous class and a new expression to construct it.
A few things are expected to happen within this class' body at compile time.
new anonCtor()
should be wrapped inqx.$$createdAt
(assuming the compiler option is set)_createQxObjectImpl
method should be ensured, with necessary calls toqx.core.MObjectId.handleObjects
to process the top level objects.Omitting some parts we don't care about here (and formatting the code tightly), this is the compiled output;
After the few small tweaks to the implementation of top-level objects, the result is as intended, and there's even limited support for tep-level objects in anonymous classes.