Files
kotlin-fork/compiler/testData/codegen/box/regressions/lambdaPostponeConstruction.kt
T
2020-07-08 12:13:31 +03:00

14 lines
250 B
Kotlin
Vendored

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"
}