better type inference for smart completing nested generic method call arguments (IDEA-74749)

This commit is contained in:
peter
2011-09-26 13:50:56 +02:00
parent 1bdf394db8
commit eb74d43139
4 changed files with 49 additions and 9 deletions
@@ -0,0 +1,13 @@
import java.util.List;
public class Zoo2 {
<T> void assertThat(T t, List<T> tt) { }
<T> List<T> wrap(T t) { }
public void main(String[] args) {
assertThat(args, wrap(args)<caret>);
}
}
@@ -0,0 +1,13 @@
import java.util.List;
public class Zoo2 {
<T> void assertThat(T t, List<T> tt) { }
<T> List<T> wrap(T t) { }
public void main(String[] args) {
assertThat(args, wrap(<caret>));
}
}