lambda: allow raw types when no inference was performed

This commit is contained in:
Anna Kozlova
2012-09-10 12:54:44 +04:00
parent 5a546b640c
commit 11a2faaf14
2 changed files with 26 additions and 1 deletions
@@ -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);
}
}