array ABC_nextFree214 integer ABC_firstFree134 integer ABC_maxIndex152 array ABC_typeId117 integer wurst_stack_depth120 array wurst_stack659 integer ABC_firstFree134 = 0 integer ABC_maxIndex152 = 0 integer B_firstFree980 = 0 integer B_maxIndex101 = 0 integer wurst_stack_depth120 = 0 function initGlobals443() { } function main203() { initGlobals443(); init_A145("when calling init_A in testOverloadingFuncClosureUse, line 1"); } function config116() { } function init_A145(string __wurst_stackPos135) { local integer this203 wurst_stack_659[wurst_stack_depth_120] = __wurst_stackPos_135; wurst_stack_depth_120 = (wurst_stack_depth_120 + 1); wurst_stack_659[wurst_stack_depth_120] = "when calling alloc_ABC_foo_A in testOverloadingFuncClosureUse, line 11"; wurst_stack_depth_120 = (wurst_stack_depth_120 + 1); if (ABC_firstFree_134 == 0) { if (ABC_maxIndex_152 < 32768) { ABC_maxIndex_152 = (ABC_maxIndex_152 + 1); this_203 = ABC_maxIndex_152; ABC_typeId_117[this_203] = 2; } else { error186("Out of memory: Could not create ABC_foo_A.", "when calling error in testOverloadingFuncClosureUse, line 11"); this_203 = 0; }; } else { ABC_firstFree_134 = (ABC_firstFree_134 - 1); this_203 = ABC_nextFree_214[ABC_firstFree_134]; ABC_typeId_117[this_203] = 2; }; wurst_stack_depth_120 = (wurst_stack_depth_120 - 1); wurst_stack_659[wurst_stack_depth_120] = "when calling foo in testOverloadingFuncClosureUse, line 11"; wurst_stack_depth_120 = (wurst_stack_depth_120 + 1); wurst_stack_659[wurst_stack_depth_120] = "when calling foo in testOverloadingFuncClosureUse, line 7"; wurst_stack_depth_120 = (wurst_stack_depth_120 + 1); if (ABC_typeId_117[this_203] == 0) { if (this_203 == 0) { error186("Nullpointer exception when calling ABC.foo", "when calling error in testOverloadingFuncClosureUse, line 4"); } else { error186("Called ABC.foo on invalid object.", "when calling error in testOverloadingFuncClosureUse, line 4"); }; } else { }; wurst_stack_depth_120 = ((wurst_stack_depth_120 - 1) - 1); testSuccess162(); wurst_stack_depth_120 = (wurst_stack_depth_120 - 1); } IS_NATIVE function testSuccess162() { } function error186(string msg596, string __wurst_stackPos985) { local integer stacktraceIndex175 local integer stacktraceLimit120 wurst_stack_659[wurst_stack_depth_120] = __wurst_stackPos_985; wurst_stack_depth_120 = (wurst_stack_depth_120 + 1); __wurst_stackPos_985 = ""; stacktraceIndex_175 = wurst_stack_depth_120; stacktraceLimit_120 = 0; loop { stacktraceIndex_175 = (stacktraceIndex_175 - 1); stacktraceLimit_120 = (stacktraceLimit_120 + 1); exitwhen ((stacktraceLimit_120 > 20) or (stacktraceIndex_175 < 0)); __wurst_stackPos_985 = (__wurst_stackPos_985 + (" " + wurst_stack_659[stacktraceIndex_175])); }; $debugPrint212((msg_596 + (" " + __wurst_stackPos_985))); wurst_stack_depth_120 = (wurst_stack_depth_120 - 1); }