java 8 initial graph inference: allow to infer type information from siblings and parent calls

This commit is contained in:
anna
2013-02-08 11:27:04 +01:00
parent 0ac39239b2
commit a9c4a9c5ab
11 changed files with 226 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
import java.util.*;
public class Main {
public static <T> T foo() {return null;}
public static <B> List<B> bar(B b) {return null;}
static {
List<String> s = bar(foo());
}
public static <B> B bar1(B b) {return null;}
static {
String s1 = bar1(foo());
}
}