Fix IteratorNext intrinsic to cast its dispatch receiver to
the expected type. ^KT-47741 Fixed.
This commit is contained in:
committed by
Alexander Udalov
parent
f83cc69379
commit
b51ff799cb
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user