[IR] Enable tests for inline classes secondary constructors with body for not JVM
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-55333
This commit is contained in:
+3
-2
@@ -1,12 +1,13 @@
|
||||
// LANGUAGE: +ValueClassesSecondaryConstructorWithBody
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JVM
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// WITH_STDLIB
|
||||
// FIR_IDENTICAL
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
|
||||
val l = mutableListOf<Any>()
|
||||
|
||||
@JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class VC(val x: Int) {
|
||||
constructor(xD: Double): this(-xD.toInt()) {
|
||||
l.add(xD)
|
||||
|
||||
Reference in New Issue
Block a user