ghostwriter icon indicating copy to clipboard operation
ghostwriter copied to clipboard

Procedure signature cauese compilation failure

Open snorbi07 opened this issue 8 years ago • 0 comments

Using a lambda expression in case of a function that has no return value causes a compilation failure.

To reproduce:

public void forEach(BiConsumer<? super K, ? super V> action) {
    Collection<Map.Entry<K, V>> entries = null;
    entries.forEach(entry -> action.accept(entry.getKey(), entry.getValue()));
}

snorbi07 avatar Jan 31 '17 19:01 snorbi07