GROOVY-6099: Flow typing type error in the "else" branch of a conditional