Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
innerNested
/
nestedGeneric.kt
blob: 9cdea6814f50ca3c5351421670878d6a10a3e9b1 [
file
] [
log
] [
blame
]
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
()
}