mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
lambda -> meth ref: fix this qualifier in case of inheritance
(cherry picked from commit 5273314961f0fbf32c18ea3d602410c635caf03f)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Example extends O {
|
||||
|
||||
void m(Runnable r) {}
|
||||
|
||||
class A {
|
||||
class B {
|
||||
{
|
||||
m(Example.this::p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class O {
|
||||
void p() {}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Example extends O {
|
||||
|
||||
void m(Runnable r) {}
|
||||
|
||||
class A {
|
||||
class B {
|
||||
{
|
||||
m(() -> p<caret>());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class O {
|
||||
void p() {}
|
||||
}
|
||||
Reference in New Issue
Block a user