Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
ir
/
hashCodeOnGenericSubstitutedWithPrimitive.kt
blob: 8c2ccab73b195341a5b2a1c712ca88685b27ad2e [
file
] [
log
] [
blame
]
// JVM_TARGET: 1.8
class
A
<
T
>
{
fun id
(
x
:
T
):
T
=
x
}
fun foo
(
f
:
A
<
Boolean
>):
Int
=
f
.
id
(
true
).
hashCode
()
fun box
():
String
=
if
(
foo
(
A
<
Boolean
>())
==
true
.
hashCode
())
"OK"
else
"Fail"