Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassInGeneratedToString.kt
T
Georgy Bronnikov 076272f7ca FIR2IR: avoid descriptors computing hashCode
When synthesizing the hashCode function for data classes, descriptors
were used, in partcular, memberScope for primitive classes.
IrBasedDescriptors have no member scope, so we compute the hashCode
function based on IR structures.
2020-12-23 18:50:52 +03:00

18 lines
246 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// FILE: Z.kt
inline class Z(val value: Int)
// FILE: test.kt
data class Data(val z1: Z, val z2: Z)
inline class Inline(val z: Z)
// @Data.class:
// 0 Z.box
// 0 Z.unbox
// @Inline.class:
// 0 Z.box
// 0 Z.unbox