076272f7ca
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.
18 lines
246 B
Kotlin
Vendored
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
|