mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 04:21:24 +07:00
java 8 initial graph inference: allow to infer type information from siblings and parent calls
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user