Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
box
/
objects
/
objectLiteralInClosure.kt
blob: 49e192606162bbe5a9b52c0676c89957093e0318 [
file
] [
log
] [
blame
]
package
p
private
class
C
(
val y
:
Int
)
{
val initChild
=
{
->
object
{
override
fun toString
():
String
{
return
"child"
+
y
}
}
}
}
fun box
():
String
{
val c
=
C
(
3
).
initChild
val x
=
c
().
toString
()
return
if
(
x
==
"child3"
)
"OK"
else
x
}