mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-175280
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.*;
|
||||
import java.util.function.*;
|
||||
|
||||
class MethodReferenceWithArguments {
|
||||
|
||||
static <T, U> T createWith(Function<? super U, ? extends T> methodRef, U arg) {
|
||||
return methodRef.apply(arg);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Map<String, String> map = createWith(
|
||||
TreeMap::new,
|
||||
Comparator.<String>reverseOrder());
|
||||
|
||||
map.put("aaa", "ONE");
|
||||
map.put("zzz", "TWO");
|
||||
|
||||
System.out.println(map);
|
||||
}
|
||||
}
|
||||
+1
@@ -172,6 +172,7 @@ public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testIncludeOnlyTypeParametersUsedInParameterTypesExcludeThoseUsedInReturnOnly() { doTest(); }
|
||||
public void testMethodREfToContainingMethodWithGenericParam() { doTest(); }
|
||||
public void testRawClassTypeOnConstructorWithVarargs() { doTest(); }
|
||||
public void testIDEA175280() { doTest(); }
|
||||
public void testDistinguishCapturedWildcardsByDifferentParameters() throws Exception { doTest(); }
|
||||
public void testConstructorRefOnClassWithRecursiveTypeParameter() throws Exception { doTest(); }
|
||||
public void testWildcardInCheckedCompatibilityConstraints() { doTest(); }
|
||||
|
||||
Reference in New Issue
Block a user