New J2K: make function parameters which is used as spread value argument to be not null

This commit is contained in:
Ilya Kirillov
2019-04-08 19:18:48 +03:00
parent 4844df2c6a
commit 33a42733f5
4 changed files with 21 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
import java.lang.reflect.Constructor
fun <T> foo(constructor: Constructor<T>, args: Array<Any>) {
constructor.newInstance(*args)
}