Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
compiler
/
testData
/
codegen
/
box
/
regressions
/
lambdaPostponeConstruction.kt
blob: 8da1e337a0ca79b93e44f308539bc55e693cea34 [
file
]
class
MyList
<
T
>
operator
fun
<
T
>
MyList
<
T
>.
plusAssign
(
element
:
T
)
{}
val listOfFunctions
=
MyList
<(
Int
)
->
Int
>()
fun foo
()
{
listOfFunctions
.
plusAssign
({
it
->
it
})
listOfFunctions
+=
{
it
->
it
}
}
fun box
():
String
{
return
"OK"
}