mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
new inference: don't process expressions after param.length for non-varargs (IDEA-149489)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Add 'String' as 2nd parameter to method 'get'" "true"
|
||||
import java.util.List;
|
||||
class Test<T> {
|
||||
|
||||
public LazyVal(final List<T> ts) {
|
||||
get(ts, "");
|
||||
}
|
||||
public static <T1> void get(List<T1> l, String s) {}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Add 'String' as 2nd parameter to method 'get'" "true"
|
||||
import java.util.List;
|
||||
class Test<T> {
|
||||
|
||||
public LazyVal(final List<T> ts) {
|
||||
get(t<caret>s, "");
|
||||
}
|
||||
public static <T1> void get(List<T1> l) {}
|
||||
}
|
||||
Reference in New Issue
Block a user