Function is already defined in the scope

@jducoeur Here is a stripped down version which seems to still reproduce the issue. Although now the code does to work at all, because I’ve removed all the program logic.

In this case I still get the confusing compiler warning/error that I have multiple definitions in scope. I don’t really see why it works sometimes, and fails other times.