new inference: do not accept varargs when array is passed there

This commit is contained in:
Anna Kozlova
2014-02-20 20:27:39 +01:00
parent 9fc4b68c25
commit de7f053c42
3 changed files with 33 additions and 3 deletions
@@ -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){}
}