mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
good code red: applicability check for non-generic method requires types calculation
This commit is contained in:
+17
@@ -29,3 +29,20 @@ class Reproduction
|
||||
V apply(String s) throws IOException;
|
||||
}
|
||||
}
|
||||
|
||||
class InferenceInVarargsParam {
|
||||
static class Pair<A, B> {
|
||||
static <T, K> Pair<T, K> create(T t, K k) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
protected void assertPathListEditor(String text, Pair<String, Boolean>... expectedTableItems) throws Exception {}
|
||||
|
||||
void testPathListSettingsEditor() throws Exception {
|
||||
assertPathListEditor("",
|
||||
Pair.create("foo", false),
|
||||
Pair.create("bar", true),
|
||||
Pair.create("$(PROJECT_DIR)/hello", false),
|
||||
Pair.create("$(PROJECT_DIR)/hello", true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user