infer Boolean in if(runReadAction(new Computab<caret>)){}

This commit is contained in:
peter
2011-08-16 19:54:55 +02:00
parent c2373aff91
commit 440204554c
4 changed files with 50 additions and 2 deletions
@@ -0,0 +1,19 @@
interface Computable<T> {
T compute();
}
public class Zoo2 {
<T> T run(Computable<T> computable) {
}
{
if (run(new Computable<Boolean>() {
@Override
public Boolean compute() {
<selection>return null; //To change body of implemented methods use File | Settings | File Templates.</selection>
}
}))
}
}
@@ -0,0 +1,14 @@
interface Computable<T> {
T compute();
}
public class Zoo2 {
<T> T run(Computable<T> computable) {
}
{
if (run(new <caret>))
}
}