Files
kotlin-fork/compiler/testData/codegen/box/callableReference/function/kt47741.kt
T
Mads Ager b51ff799cb Fix IteratorNext intrinsic to cast its dispatch receiver to
the expected type.

^KT-47741 Fixed.
2021-07-16 21:07:11 +02:00

7 lines
155 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
fun box(): String {
val generateId = (1 .. Int.MAX_VALUE).iterator()::next
return if (generateId() == 1) "OK" else "FAIL"
}