mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: do not accept varargs when array is passed there
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.util.Set;
|
||||
|
||||
class FooBar {
|
||||
Set<String> strings = null;
|
||||
{
|
||||
bar(strings.toArray(new String[strings.size()]));
|
||||
}
|
||||
|
||||
void bar(String... a){}
|
||||
}
|
||||
Reference in New Issue
Block a user