do not create raw outer types during diamond inference

(cherry picked from commit c812622e14b3cb86ec18cedd406118789abb2e83)
This commit is contained in:
anna
2013-11-27 13:34:17 +01:00
parent 834793e8f3
commit ad9486dbf7
3 changed files with 63 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
import java.util.*;
class HT<O> {
private Iterator<O> getIterator(int type, int count) {
return new Enumerator<>(type, true);
}
private class Enumerator<T> implements Iterator<T> {
public Enumerator(int type, boolean b) {
}
@Override
public boolean hasNext() {
return false;
}
@Override
public T next() {
return null;
}
}
}