mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
lambda: lambda on vararg place
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class Test <T, U> {
|
||||
protected U exerciseOps(TestData<T> data, TerminalOp<T, U> terminal, IntermediateOp<T, U>... ops) {
|
||||
return exerciseOps(data, terminal, (u, v) -> u.equals(v));
|
||||
}
|
||||
|
||||
|
||||
|
||||
class TestData<K> {}
|
||||
interface TerminalOp<L, M> extends IntermediateOp<L, M> {
|
||||
|
||||
}
|
||||
interface IntermediateOp<L1, M1> { boolean _(L1 l, M1 m);}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user