mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
new inference: don't add primitive equals bounds
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
class IDEA100385 {
|
||||
void foo(N<Double> n){
|
||||
n.forEach(<error descr="Incompatible parameter types in lambda expression: expected Double but found double">(double e)</error> -> { });
|
||||
n.forEach(<error descr="Cannot infer functional interface type">(double e) -> { }</error>);
|
||||
}
|
||||
static interface N<E> {
|
||||
void forEach(Consumer<? extends E> consumer);
|
||||
|
||||
Reference in New Issue
Block a user