mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
ensure array is not accepted as functional interface (IDEA-172048)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
class Test {
|
||||
public static <T> void execute(Callable<T>[] cmds) { }
|
||||
|
||||
public static void main(String[] args) throws Exception{
|
||||
execute(<error descr="Callable<T>[] is not a functional interface">() -> null</error>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user