mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda: allow raw types when no inference was performed
This commit is contained in:
+12
@@ -58,3 +58,15 @@ class Test4 {
|
||||
public interface TerminalOp1<T, U> extends IntermediateOp1<T, U> {}
|
||||
|
||||
}
|
||||
|
||||
class Test5 {
|
||||
{
|
||||
Block empty = x -> {};
|
||||
Block<?> empty1 = x -> {};
|
||||
System.out.println((Block) x -> {});
|
||||
}
|
||||
|
||||
interface Block<T> {
|
||||
void apply(T t);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user