I managed to solve my by clearing out the entire class content and compiling it. As expected, the first compile failed. Then, I pasted the original content back into the class and compiled it again. After that, everything worked fineāthe code was running normally.