[Solved] Why isn’t the compiler noticing that a boolean has been declared true?


By the time program control gets to else if(!visible){, visible can only be false.

Your compiler is hinting that you should clarify your code to else { instead.

solved Why isn’t the compiler noticing that a boolean has been declared true?