method ref: inline method ref in qualifier place; do not treat cast as redundant there

This commit is contained in:
anna
2012-09-25 19:47:02 +02:00
parent 99ae9e1382
commit 97b9fbee9a
9 changed files with 69 additions and 15 deletions
@@ -0,0 +1,14 @@
class Test {
{
Bar bar = Test::length;
b<caret>ar._("");
}
public static Integer length(String s) {
return s.length();
}
interface Bar {
Integer _(String s);
}
}