mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
bombed test for resolution with cycle
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
|
||||
abstract class Test {
|
||||
|
||||
{
|
||||
Consumer<? extends Double> bar = bar(instanceOf(Integer.class), i -> i + 2);
|
||||
Consumer<? extends String> bar1 = bar(instanceOf(Integer.class), i -> i + 2);
|
||||
}
|
||||
|
||||
|
||||
abstract <T, R> Consumer<T> bar(Predicate<? super T> predicate, Function<T, R> f);
|
||||
abstract <P> Predicate<P> instanceOf(Class<? extends P> type);
|
||||
}
|
||||
+7
@@ -18,6 +18,7 @@ package com.intellij.codeInsight.daemon.lambda;
|
||||
import com.intellij.codeInsight.daemon.LightDaemonAnalyzerTestCase;
|
||||
import com.intellij.codeInsight.daemon.impl.HighlightInfo;
|
||||
import com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection;
|
||||
import com.intellij.idea.Bombed;
|
||||
import com.intellij.lang.annotation.HighlightSeverity;
|
||||
import com.intellij.openapi.projectRoots.JavaSdkVersion;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
@@ -26,6 +27,7 @@ import com.intellij.testFramework.IdeaTestUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@@ -476,6 +478,11 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
@Bombed(month = Calendar.AUGUST, day = 30, user = "ann")
|
||||
public void testResolutionOrderForVariableCycles() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user