mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
JVM_IR: do not do invokeinterface on Object methods
This works on HotSpot, but might confuse other VMs.
This commit is contained in:
5
compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt
vendored
Normal file
5
compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
val x: () -> Unit = {}
|
||||
val y = x.hashCode()
|
||||
|
||||
// 1 INVOKEVIRTUAL java/lang/Object.hashCode \(\)I
|
||||
// 0 INVOKEINTERFACE
|
||||
Reference in New Issue
Block a user