I have a project which I want to update from Kotli...
# android
s
I have a project which I want to update from Kotlin 1.6.20 to 1.9.24. Can I assume kotlin to be backwards compatible and it won't break the libraries? If library is compiled with older version of Kotlin will it still continue to work?
c
No, you shouldn't assume that. You should test it.
s
Got it, testing makes sense but are they supposed to work together?
a
It should be backwards compatible YES. Also, unless you have very specific requirement to update to 1.9.24, I would recommend updating to at least Kotlin 2.0.0 (which bundles lots of great updates including K2 compiler).
s
I remember reading it somewhere that 2.0 is not completely backwards compatible. Can update to 2.0 with same requirements - being able to use libraries compiled with older version of kotlin.