Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
classes
/
delegationGenericArg.kt
blob: 86ab6a11cc7e798d4e3cc46f8e1fad1528a75521 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
interface
A
<
T
>
{
fun foo
(
t
:
T
):
String
}
class
Derived
(
a
:
A
<
Int
>)
:
A
<
Int
>
by
a
fun box
():
String
{
val o
=
object
:
A
<
Int
>
{
override
fun foo
(
t
:
Int
)
=
if
(
t
==
42
)
"OK"
else
"Fail $t"
}
return
Derived
(
o
).
foo
(
42
)
}