Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
classes
/
delegationGenericArg.kt
blob: f298e834f79549a293d0919b8efa0084f9d83df7 [
file
] [
log
] [
blame
]
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
)
}