Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting8/BooleanInferenceFromIfCondition.java

13 lines
276 B
Java

class Main {
public <T> T getAttribute() {return null;}
public <T> T getAttribute(T def) {return null;}
{
if (getAttribute()) {}
while (getAttribute()) {}
do {} while (getAttribute());
for(int i = 0; getAttribute(); i++);
}
}