-
Notifications
You must be signed in to change notification settings - Fork 665
Kotlin 2.3 #3112
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
base: dev
Are you sure you want to change the base?
Kotlin 2.3 #3112
Conversation
- Fix some test dependencies due to "Adding API dependency types to test source sets is not supported and will removed in a future version of Kotlin." warning. - Update BCV version
fzhinkin
left a comment
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.
Overall, the change looks good. There are only a few minor nits from me.
| freeCompilerArgs.add("-Xsuppress-version-warnings") | ||
| } | ||
| freeCompilerArgs.add("-Xexpect-actual-classes") | ||
| // for some reason, IDE does not enable feature in test source sets without this line: |
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.
Could you please file an issue to investigate the root cause further?
| val str = json.encodeToString(Sealed.serializer(), outer) | ||
| // throw-away data | ||
| json.decodeFromString(Sealed.serializer(), str) | ||
| // check that data is correctly formed |
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.
[nit] If the goal is to check correctness, should we validate that deserialized object is structurally equal to outer?
| } | ||
| } | ||
|
|
||
| @IgnorableReturnValue |
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.
Should the function has Unit as its return type instead?
Fix some test dependencies due to "Adding API dependency types to test source sets is not supported and will removed in a future version of Kotlin." warning.
Update BCV version
Enable Unused Return Value checker