mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +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:
+1
-4
@@ -8,9 +8,6 @@ abstract class Test {
|
||||
|
||||
private void call(){
|
||||
String s = <error descr="Incompatible types. Required String but 'test' was inferred to T:
|
||||
no instance(s) of type variable(s) exist so that String[] conforms to String
|
||||
inference variable T has incompatible bounds:
|
||||
equality constraints: String[]
|
||||
upper bounds: Object, String">test(String[].class);</error>
|
||||
no instance(s) of type variable(s) exist so that String[] conforms to String">test(String[].class);</error>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user