-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Investigate Kotlin 2.1 compiler warnings for contracts #4371
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
Comments
At first glance the errors look like false positives. This KT issue perfectly describes the reason of the error in the
|
So you think we can safely suppress these warnings? If so, what's the "category" to use with the |
I investigated this issue more in detail. First, it's possible to suppress them with Second, I perhaps wouldn't do it. There was an example of a potential change to |
@awelless Thanks for taking a closer look!
But isn't IIUC, you wouldn't suppress the warnings but relax the contract to use |
@marcphilipp I'll be able to do a review near the weekend, not earlier. |
The Kotlin contracts introduced in #1866 cause the following warnings after bumping
apiVersion
andlanguageVersion
to 2.1 on themarc/jdk17
branch.These warnings can be reproduced by running
./gradlew :junit-jupiter-api:compileKotlin --rerun
They are currently not treated as errors:
junit5/junit-jupiter-api/junit-jupiter-api.gradle.kts
Lines 26 to 29 in 4ba2f60
Deliverables
The text was updated successfully, but these errors were encountered: