ReplaceJavaStaticMethodWithKotlinAnalogInspection: fix false positive for 'Arrays.copyOf'

#KT-32477
This commit is contained in:
Dmitry Gridin
2019-07-08 14:29:49 +03:00
parent 4a8dbeda1b
commit 24caca1882
3 changed files with 16 additions and 1 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// PROBLEM: none
import java.util.Arrays
fun test() {
val array = arrayOf(1, 2, 3)
val result = Arrays.<caret>copyOf(array, 3, Array<Double>::class.java)
}