inference from conditions (IDEA-101161)

This commit is contained in:
anna
2013-02-15 16:28:14 +01:00
parent e120d0af1f
commit 52338427d5
3 changed files with 36 additions and 0 deletions
@@ -0,0 +1,12 @@
public 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++);
}
}