method refs: fix qualifier when static method is moved; show conflict if instance method is moved

This commit is contained in:
anna committed 2012-10-26 18:59:47 +02:00
1 parent 337235214d
commit af9704ef04
5 files changed
+71 -16

No files matched your search

@@ -0,0 +1,16 @@
interface SAM {
String m(MethodReference<String> f, F f1);
}
class F {}
class MethodReference<X> {
String ge<caret>tX(F f1) {
return null;
}
static void test() {
SAM s = MethodReference<String>::getX;
}
}