mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: non wildcard parametrization: reject primitive bounds
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class IDEA100385 {
|
||||
void foo(N<Double> n){
|
||||
n.forEach((<error descr="Incompatible parameter types in lambda expression">double e</error>) -> { });
|
||||
}
|
||||
static interface N<E> {
|
||||
void forEach(Consumer<? extends E> consumer);
|
||||
}
|
||||
|
||||
interface Consumer<T> {
|
||||
public void accept(T t);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user