By pure chance I've found a line in my code that wasn't marked as as syntax error and compiles fine:
B4X:
Wait For (sf) Completa (Result As Int)
'Completa instead of Complete