Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
innerNested
/
nestedGeneric.kt
blob: 736182130d6d2c753ad8b4034648f66e584cd1f6 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
class
Outer
{
class
Nested
<
T
>(
val t
:
T
)
{
fun box
()
=
t
}
}
fun box
():
String
{
if
(
Outer
.
Nested
<
String
>(
"OK"
).
box
()
!=
"OK"
)
return
"Fail"
val x
:
Outer
.
Nested
<
String
>
=
Outer
.
Nested
(
"OK"
)
return
x
.
box
()
}