scope test_unstructureErrorInConstructor. sclass #Oopsie { *() { if (dynamicObjectIsLoading()) fail(); } } svoid test_unstructureErrorInConstructor() { assertInstanceOf(DynamicObject, restructure(new Oopsie)); print("OK"); } end scope