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

This commit is contained in:
anna
2012-10-26 18:56:44 +02:00
parent 337235214d
commit af9704ef04
5 changed files with 71 additions and 16 deletions
@@ -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;
}
}