Fix IteratorNext intrinsic to cast its dispatch receiver to

the expected type.

^KT-47741 Fixed.
This commit is contained in:
Mads Ager
2021-07-15 14:51:09 +02:00
committed by Alexander Udalov
parent f83cc69379
commit b51ff799cb
10 changed files with 51 additions and 2 deletions
@@ -0,0 +1,6 @@
// IGNORE_BACKEND: WASM
fun box(): String {
val generateId = (1 .. Int.MAX_VALUE).iterator()::next
return if (generateId() == 1) "OK" else "FAIL"
}