mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
inference from conditions (IDEA-101161)
This commit is contained in:
+12
@@ -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++);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user