Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/hashCodeIsCalledByInlineClass.kt
2018-12-21 16:20:45 +01:00

15 lines
317 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// FILE: Z.kt
inline class Z(val x: Int)
// FILE: Test.kt
fun testZ(z: Z) = z.hashCode()
fun testNZ(z: Z?) = z?.hashCode()
// @TestKt.class:
// 0 INVOKESTATIC Z\$Erased\.hashCode
// 0 INVOKESTATIC Z\-Erased\.hashCode
// 2 INVOKESTATIC Z\.hashCode-impl \(I\)I