mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
testResolveDiamondBeforeOuterCall simplified (TreeSet ctor overloads don't matter here)
GitOrigin-RevId: 6b303239bed1ffcfd94cbd54f781541e38dc5837
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b4997ab003
commit
3fa35e0750
@@ -4,9 +4,13 @@ import java.util.TreeSet;
|
||||
|
||||
class Test {
|
||||
Test(final Set<? super String> set) {
|
||||
System.out.println(join(new TreeSet<>(set), ""));
|
||||
System.out.println(join(new TreeSet<>(set)));
|
||||
}
|
||||
|
||||
public static String join(Iterable<?> items, String separator) {return items+separator;}
|
||||
public static String join(Collection<String> strings, String separator) {return strings + separator;}
|
||||
public static String join(Iterable<?> items) {return "";}
|
||||
public static String join(Collection<String> strings) {return "";}
|
||||
}
|
||||
|
||||
class TreeSet<E> extends Set<E> {
|
||||
TreeSet(Collection<? extends E> c) {}
|
||||
}
|
||||
@@ -305,7 +305,7 @@ public class Java8ExpressionsCheckTest extends LightDaemonAnalyzerTestCase {
|
||||
PsiNewExpression newExpression = ContainerUtil.getOnlyItem(PsiTreeUtil.findChildrenOfType(getFile(), PsiNewExpression.class));
|
||||
assertNotNull(newExpression);
|
||||
PsiType type = newExpression.getType();
|
||||
assertEquals("java.util.TreeSet<? super java.lang.String>", type.getCanonicalText());
|
||||
assertEquals("TreeSet<? super java.lang.String>", type.getCanonicalText());
|
||||
}
|
||||
|
||||
private void doTestAllMethodCallExpressions() {
|
||||
|
||||
Reference in New Issue
Block a user