Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/valueClasses.kt
T
2022-12-20 21:26:56 +00:00

13 lines
278 B
Kotlin
Vendored

// LANGUAGE: +ValueClasses
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// SKIP_TXT
// FIR_IDENTICAL
@JvmInline
value class DPoint(val x: Double, val y: Double)
inline fun f1() = DPoint(1.0, 2.0)
<!NOTHING_TO_INLINE!>inline<!> fun f2() = 2U
inline val p1 get() = DPoint(1.0, 2.0)