mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
lambda: tests
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
class WildcardBounds {
|
||||
|
||||
interface I<T> {
|
||||
T foo(T a, T b);
|
||||
}
|
||||
|
||||
void m1(I<? extends String> f1) {}
|
||||
void m2(I<? super String> f2) {}
|
||||
void m3(I<?> f3) {}
|
||||
|
||||
I<? extends String> f1 = (a, b) -> a;
|
||||
I<? super String> f2 = (a, b) -> a;
|
||||
I<?> f3 = (a, b) -> a;
|
||||
|
||||
{
|
||||
m1((a, b) -> a);
|
||||
m2((a, b) -> a);
|
||||
m3((a, b) -> a);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user