Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
compiler
/
testData
/
codegen
/
box
/
bridges
/
covariantGenericDiamond.kt
blob: 3292015fd01fee1f3da3094dacf1ce7284bd437e [
file
]
interface
A
{
val result
:
Any
}
interface
B
:
A
{
override
val result
:
String
}
abstract
class
AImpl
<
out
Self
:
Any
>(
override
val result
:
Self
)
:
A
class
BImpl
(
result
:
String
)
:
AImpl
<
String
>(
result
),
B
fun box
():
String
=
(
BImpl
(
"OK"
)
as
B
).
result