Fixed KT-5433 J2K: incorrect conversion of method call with vararg

#KT-5433 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-09 14:03:21 +04:00
parent fe46b40220
commit 5c688e9916
9 changed files with 70 additions and 10 deletions
@@ -0,0 +1,9 @@
//file
import java.lang.reflect.Constructor;
class X {
static <T> void foo(Constructor<T> constructor, Object[] args1, Object[] args2) throws Exception {
constructor.newInstance(args1);
constructor.newInstance(args1, args2);
}
}