mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
calc types by applicability constraints if inference fails
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
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
class Test {
|
||||
{
|
||||
asList(<error descr="Integer is not a functional interface">o -> {}</error>, 1, 2, 3);
|
||||
asList(<error descr="T is not a functional interface">Test::foo</error>, 1, 2, 3);
|
||||
asList(<error descr="Target type of a lambda conversion must be an interface">o -> {}</error>, 1, 2, 3);
|
||||
asList(<error descr="Integer is not a functional interface">Test::foo</error>, 1, 2, 3);
|
||||
}
|
||||
|
||||
void foo() {}
|
||||
|
||||
Reference in New Issue
Block a user