mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Generate optimized hashCode for primitive type with jvmTarget 1.8+
#KT-7571 Fixed
This commit is contained in:
16
compiler/testData/codegen/bytecodeText/hashCode/hashCode.kt
vendored
Normal file
16
compiler/testData/codegen/bytecodeText/hashCode/hashCode.kt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
fun box(): String {
|
||||
true.hashCode()
|
||||
1.toByte().hashCode()
|
||||
1.toChar().hashCode()
|
||||
1.toShort().hashCode()
|
||||
1.hashCode()
|
||||
1L.hashCode()
|
||||
1.0F.hashCode()
|
||||
1.0.hashCode()
|
||||
"".hashCode()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// 9 \.hashCode
|
||||
// 9 \.hashCode \(\)I
|
||||
Reference in New Issue
Block a user