Files
kotlin/compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt
pyos 498b41b148 JVM_IR: do not do invokeinterface on Object methods
This works on HotSpot, but might confuse other VMs.
2019-12-11 15:09:37 +01:00

6 lines
117 B
Kotlin
Vendored

val x: () -> Unit = {}
val y = x.hashCode()
// 1 INVOKEVIRTUAL java/lang/Object.hashCode \(\)I
// 0 INVOKEINTERFACE