EA-70589 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText

This commit is contained in:
Anna Kozlova
2015-09-29 17:34:29 +02:00
parent ef90ef8f63
commit 090038722a
3 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
// "Replace lambda with method reference" "true"
import java.util.function.Function;
class Test<T> {
class Bar {
void f( ){
Function<Test<T>.Bar, String> r = Bar::foo;
}
private String foo() {}
}
}

View File

@@ -0,0 +1,15 @@
// "Replace lambda with method reference" "true"
import java.util.function.Function;
class Test<T> {
class Bar {
void f( ){
Function<Test<T>.Bar, String> r = (Test<T>.Bar t) -> t.fo<caret>o();
}
private String foo() {}
}
}