3b5ad0681f
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179
22 lines
329 B
Kotlin
Vendored
22 lines
329 B
Kotlin
Vendored
// !LANGUAGE: +ValueClasses
|
|
// WITH_STDLIB
|
|
// TARGET_BACKEND: JVM_IR
|
|
// CHECK_BYTECODE_LISTING
|
|
|
|
|
|
@JvmInline
|
|
value class DPoint(val x: Double, val y: Double)
|
|
|
|
class A : B()
|
|
|
|
class C {
|
|
fun set(value: DPoint) = A().set(value)
|
|
}
|
|
|
|
open class B {
|
|
|
|
fun set(value: DPoint) = "OK"
|
|
}
|
|
|
|
fun box(): String = A().set(DPoint(1.0, 2.0))
|