This code completely kills the map and resets all devices, which then need to be reconfigured and creative_devices added to them.
And it does not generate an error in VS code, but shows script 9000 when building. Fixing a device via option and subsequent build still destroys all devices.
test1 := class(creative_device):
@editable
TestClass : test_class = test_class{}
OnBegin<override>()<suspends>:void=
set TestClass.MainDevice = Self
test_class := class<concrete>:
var MainDevice : test1 = test1{}