lambda: do not start inference from void type (IDEA-127596)

This commit is contained in:
Anna Kozlova
2014-07-21 12:12:28 +02:00
parent 6de6ee120b
commit 9b4912c5a0
3 changed files with 14 additions and 1 deletions
@@ -0,0 +1,9 @@
class Executor<E> {
<K> void bar(Executor<K> e) {
Runnable r = () -> foo(e);
}
private <T> T foo(final Executor<T> e) {
return null;
}
}