mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-12 04:36:59 +07:00
26 lines
242 B
Plaintext
26 lines
242 B
Plaintext
|
|
class Bar {
|
|
void foo() {
|
|
}
|
|
|
|
void m(){
|
|
foo();
|
|
}
|
|
|
|
{
|
|
Runnable r = this::foo;
|
|
}
|
|
|
|
static {
|
|
Runnable r = new Bar()::foo;
|
|
}
|
|
}
|
|
|
|
class Bar1 {
|
|
void m() {
|
|
new Bar().foo();
|
|
}
|
|
{
|
|
Runnable r = new Bar()::foo;
|
|
}
|
|
} |