Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
inference
/
unsafeVarianceCodegen.kt
blob: 2e415b0b9ec0b62b0a2e49419438882983843add [
file
]
class
A
<
out
K
>
{
fun foo
(
x
:
@UnsafeVariance
K
):
K
=
x
}
fun test
(
a
:
A
<*>):
Any
?
{
return
a
.
foo
(
"OK"
)
}
fun box
():
String
{
return
test
(
A
<
String
>())
as
String
}