treat conditional expressions with new expressions with diamonds inside as poly

EA-76546 - assert: InferenceSessionContainer.treeWalkUp
This commit is contained in:
Anna.Kozlova
2016-04-19 19:05:54 +02:00
parent abf32b50d5
commit c09caae28e
3 changed files with 25 additions and 2 deletions
@@ -0,0 +1,15 @@
class FImpl<K> {
public FImpl(K k) {
}
public void myMethod() {
foo (false ? new FImpl<>(null) : null);
}
private <T> T foo(final T bar) {
return null;
}
private <T> T foo(final String bar) {
return null;
}
}