mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-127275
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Main {
|
||||
{
|
||||
List<Optional<Function<String, String>>> list = asList(of(Main::identity));
|
||||
}
|
||||
|
||||
static <T> List<T> asList(T... a) { return null;}
|
||||
|
||||
static <T> Optional<T> of(T value) { return null;}
|
||||
|
||||
public static String identity(final String s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Main {
|
||||
{
|
||||
List<Optional<Function<String, String>>> list = asList(of(Main::identity));
|
||||
}
|
||||
|
||||
static <T> List<T> asList(T a) { return null;}
|
||||
static <T> List<T> asList(Optional a) { return null;}
|
||||
|
||||
static <T> Optional<T> of(T value) { return null;}
|
||||
|
||||
public static String identity(final String s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
}
|
||||
+12
@@ -19,12 +19,15 @@ import com.intellij.codeInsight.daemon.LightDaemonAnalyzerTestCase;
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection;
|
||||
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import com.intellij.idea.Bombed;
|
||||
import com.intellij.openapi.projectRoots.JavaSdkVersion;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.testFramework.IdeaTestUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
@NonNls static final String BASE_PATH = "/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef";
|
||||
|
||||
@@ -281,6 +284,15 @@ public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA127275() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
@Bombed(day = 20, month = Calendar.AUGUST)
|
||||
public void testIDEA127275_() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user