mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
testdata: ensure lambda can't be inferred from type parameter
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
interface I {
|
||||
void m();
|
||||
}
|
||||
|
||||
<T> void call(T t) {}
|
||||
<T extends Runnable> void call1(T t) {}
|
||||
|
||||
{
|
||||
call<error descr="'call(T)' in 'Test' cannot be applied to '(<lambda expression>)'">(() -> {})</error>;
|
||||
call1(() -> {});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user