7d59c7689c
Due to the direct invoke optimization, most callable reference tests were not generating callable references/lambdas.
16 lines
324 B
Kotlin
Vendored
16 lines
324 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// KT-5123
|
|
|
|
import java.util.Collections
|
|
import java.util.ArrayList
|
|
|
|
fun box(): String {
|
|
val numbers = ArrayList<Int>()
|
|
numbers.add(1)
|
|
numbers.add(2)
|
|
numbers.add(3)
|
|
(Collections::rotate).let { it(numbers, 1) }
|
|
return if ("$numbers" == "[3, 1, 2]") "OK" else "Fail $numbers"
|
|
}
|