New J2K: make function parameters which is used as spread value argument to be not null
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import java.lang.reflect.Constructor
|
||||
|
||||
fun <T> foo(constructor: Constructor<T>, args: Array<Any>) {
|
||||
constructor.newInstance(*args)
|
||||
}
|
||||
Reference in New Issue
Block a user