Thanks! I’ve now got other (much worse, can’t even open the project now) issues but that solved that problem.
Thanks for the responses
e: for the sake of people who google this problem:
it seems to have been solved by getting rid of the type declaration in the body of the code.
So i changed my calculation to just A_Out =(newAN + newAT); etc