diamonds: treat as raw type when inference was failed (IDEA-66370)

This commit is contained in:
anna
2011-03-09 20:53:19 +01:00
parent 175e60c7fa
commit 3b8b505304
5 changed files with 59 additions and 5 deletions
@@ -0,0 +1,6 @@
import java.util.ArrayList
class Test {
void foo(final ArrayList anObject) {
ArrayList l = anObject;
}
}
@@ -0,0 +1,6 @@
import java.util.ArrayList
class Test {
void foo() {
ArrayList l = <selection>new ArrayList<>()</selection>;
}
}