After upgrading Kotlin from `2.2.0-Beta1` to `2.2....
# getting-started
r
After upgrading Kotlin from
2.2.0-Beta1
to
2.2.0-RC
I have lot's of new
Return type must be specified in explicit API mode.
errors, all about methods with expression body. I need to add return types before
=
to all these methods. I don't see anything about this change in the release notes.
Also these errors are not reported in IDE (latest version Intellij IDEA Ultimate, with K2 mode enabled) - only during Gradle compilation.
h
That should always be the case when using explicitAPI
For years
r
I agree. Still I think there is an issue for that on YT. Or at least should be.