mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline functional expression: surround with parenthesis if inlined in method reference qualifier (IDEA-152600)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
interface Task {
|
||||
void doit();
|
||||
}
|
||||
|
||||
class SuperClient {
|
||||
public static void main(String[] args) {
|
||||
Runnable r = ((Task) () -> System.out.println("hello"))::doit;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user