mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
create meth reference from usage: substitute param types (IDEA-124322)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
{
|
||||
Comparator<String> c = this::fooBar;
|
||||
}
|
||||
|
||||
private int fooBar(String s, String s1) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
interface Comparator<T> {
|
||||
int compare(T o1, T o2);
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
{
|
||||
Comparator<String> c = this::foo<caret>Bar;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
interface Comparator<T> {
|
||||
int compare(T o1, T o2);
|
||||
}
|
||||
Reference in New Issue
Block a user