mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: ensure erased target type if substitutor was raw (IDEA-143183)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.util.Collection;
|
||||
|
||||
class Test {
|
||||
Expression expression;
|
||||
|
||||
void foo() {
|
||||
expression.in(parameter(Collection.class));
|
||||
}
|
||||
|
||||
<T> Expression<T> parameter(Class<T> paramClass) {
|
||||
return null;
|
||||
}
|
||||
|
||||
interface Expression<T> {
|
||||
Expression in(Expression<Collection<?>> values);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user