We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
UnsafeBufferOperations
Kotlin 2.0 can see through inline funs now, but it does not infer calls-in-place.
inline fun
One workaround for #360 would be to do
override fun readAtMostTo(sink: Buffer, byteCount: Long): Long { val bytesRead: Int UnsafeBufferOperations.writeToTail(sink, 1) { bytes, startIndexInclusive, endIndexExclusive -> val read: Int = TODO() bytesRead = read read } return bytesRead.toLong() }
except without the contract the compiler complains bytesRead is not initialized at the return.
bytesRead
The text was updated successfully, but these errors were encountered:
ecd60a8
No branches or pull requests
Kotlin 2.0 can see through
inline fun
s now, but it does not infer calls-in-place.One workaround for #360 would be to do
except without the contract the compiler complains
bytesRead
is not initialized at the return.The text was updated successfully, but these errors were encountered: