Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Kotlin to 1.5.20 #2810

Merged
merged 4 commits into from
Jul 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Suppress false-positive
  • Loading branch information
qwwdfsad committed Jul 6, 2021
commit a86ab2ca7efbd15bea7955089d8285ca44d97d1f
1 change: 1 addition & 0 deletions kotlinx-coroutines-core/common/src/channels/Deprecated.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public suspend fun <E> ReceiveChannel<E>.elementAt(index: Int): E = consume {
throw IndexOutOfBoundsException("ReceiveChannel doesn't contain element at index $index.")
var count = 0
for (element in this) {
@Suppress("UNUSED_CHANGED_VALUE") // KT-47628
if (index == count++)
return element
}
Expand Down