Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
ir
/
hashCodeOnGenericSubstitutedWithPrimitive.kt
blob: 8c2ccab73b195341a5b2a1c712ca88685b27ad2e [
file
]
// 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"