KT-1019 recover from missing parentheses in function declaration