mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
isApplicability check based on pertinentToApplicability
This commit is contained in:
+4
-1
@@ -7,6 +7,9 @@ abstract class Test {
|
||||
abstract <T> T test(Serializable type);
|
||||
|
||||
private void call(){
|
||||
String s = test<error descr="'test(java.lang.Class<T>)' in 'Test' cannot be applied to '(java.lang.Class<java.lang.String[]>)'">(String[].class)</error>;
|
||||
String s = <error descr="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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user