-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 2.1.0 #4284
Update Kotlin to 2.1.0 #4284
Conversation
@@ -153,6 +153,7 @@ public suspend fun <T> withContext( | |||
// FAST PATH #1 -- new context is the same as the old one | |||
if (newContext === oldContext) { | |||
val coroutine = ScopeCoroutine(newContext, uCont) | |||
@Suppress("LEAKED_IN_PLACE_LAMBDA") // Contract is preserved, invoked immediately or throws |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one (an one on the contract definition) is annoying, I'll report it to the team
return@sc coroutine.startUndispatchedOrReturn(coroutine, block) | ||
} | ||
} | ||
// SLOW PATH -- use new dispatcher | ||
val coroutine = DispatchedCoroutine(newContext, uCont) | ||
// Contract is preserved, invoked immediately or throws | ||
@Suppress("LEAKED_IN_PLACE_LAMBDA") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer that the comment is to the right of Suppress
: typically, the comment above a line with a suppression refers to the line itself.
kotlin_version=2.0.0 | ||
kotlin_language_version=2.0 | ||
kotlin_version=2.1.0 | ||
kotlin_language_version=2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this line do anything useful today other than accidentally disabling the "warnings are errors" flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR release team uses it, but not sure. Will figure out separately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release team may override this property, this I get, but do we need to keep it in gradle.properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for the sake of having "release team" branch and mainline having the same configuration and catching the same warnings/errors.
No description provided.