fix getClass() type in non-physical context

IDEA-188897
This commit is contained in:
Anna.Kozlova
2018-03-27 17:15:52 +02:00
parent 532ac7d3af
commit 287b88b975
2 changed files with 17 additions and 5 deletions
@@ -0,0 +1,13 @@
// "Replace explicit type with 'var'" "false"
import java.util.List;
class Program {
void getRidOfType() {
Li<caret>st<?> list = getList(getClass());
list = getList(Integer.class);
}
public static <T> List<T> getList(Class<T> clazz) {
return null;
}
}