[FIR] Use @DeprecatedSinceKotlin in the resolution
This commit is contained in:
committed by
teamcityserver
parent
b64f7909b8
commit
9fad55d551
@@ -0,0 +1,29 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package kotlin.test
|
||||
|
||||
@JvmName("contentEqualsNullable")
|
||||
public inline infix fun <T> Array<out T>?.contentEqualsMy(other: Array<out T>?): Boolean {
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
|
||||
@DeprecatedSinceKotlin(hiddenSince = "1.4")
|
||||
public inline infix fun <T> Array<out T>.contentEqualsMy(other: Array<out T>): Boolean {
|
||||
return this.contentEqualsMy(other)
|
||||
}
|
||||
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
fun box(): String {
|
||||
val arr = arrayOf(1, 2, 3)
|
||||
return if (arr contentEqualsMy arr) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user