mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: wildcard parameterization inference
This commit is contained in:
@@ -19,7 +19,7 @@ public class SampleExtendsWildcard {
|
||||
|
||||
class SampleSuperWildcard {
|
||||
public void highlightsTheBug(Stream<String> stream) {
|
||||
stream.flatMap((<error descr="Incompatible parameter types in lambda expression">Block<?> sink</error>, String element) -> {});
|
||||
stream.flatMap(<error descr="Cannot infer functional interface type">(Block<?> sink, String element) -> {}</error>);
|
||||
}
|
||||
|
||||
public interface Block<B> {
|
||||
|
||||
Reference in New Issue
Block a user