create meth reference from usage: substitute param types (IDEA-124322)

This commit is contained in:
Anna Kozlova
2014-04-23 16:33:48 +02:00
parent c160fc5adf
commit 1c431a8076
3 changed files with 29 additions and 2 deletions
@@ -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);
}
@@ -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);
}