mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +07:00
include all inference variables for resolve and ignore additional constraints checks if the inference is going to failure; this way if (expr()) would get type of the 'standalone' expression instead of expression with boolean as expected type
11 lines
429 B
Java
11 lines
429 B
Java
import java.io.Reader;
|
|
import java.util.Arrays;
|
|
import java.util.function.Consumer;
|
|
|
|
class Test {
|
|
|
|
public static void main(String[] args) {
|
|
Iterable<Consumer<Reader>> i = Arrays.asList((r) -> r.<error descr="Unhandled exception: java.io.IOException">read()</error>);
|
|
Iterable<Consumer<Reader>> i1 = Arrays.<Consumer<Reader>>asList((r) -> r.<error descr="Unhandled exception: java.io.IOException">read()</error>);
|
|
}
|
|
} |