[K/N] Fix kt53261_noinline_NonNullNativePtr.kt with K2
This commit is contained in:
committed by
Space Team
parent
d8c80b0270
commit
503c1a2eb6
+2
-1
@@ -11,6 +11,7 @@ import kotlinx.cinterop.*
|
||||
fun main() = memScoped {
|
||||
val var1: IntVar = alloc()
|
||||
val var2: IntVar = alloc()
|
||||
@Suppress("INVISIBLE_MEMBER")
|
||||
// The first one is K1, the second one is K2.
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
println(var1.ptr.value as Any == var2.ptr.value as Any)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user