[IR] Fix mutable shared reference of MFVC type
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179
This commit is contained in:
committed by
Space Team
parent
752d6505e9
commit
19424702e0
@@ -0,0 +1,16 @@
|
||||
// LANGUAGE: +ValueClasses
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// WITH_STDLIB
|
||||
// FIR_IDENTICAL
|
||||
|
||||
@JvmInline
|
||||
value class DPoint(val x: Double, val y: Double)
|
||||
|
||||
fun box(): String {
|
||||
var point = DPoint(1.0, 2.0)
|
||||
repeat(10) {
|
||||
point = DPoint(3.0, 4.0)
|
||||
}
|
||||
return if (point == DPoint(3.0, 4.0)) "OK" else point.toString()
|
||||
}
|
||||
Reference in New Issue
Block a user