artem_zin
04/27/2016, 4:02 PMapp depends on lib b
1) lib b depends on lib a
2) lib a has an enum
3) lib b has next code:
fun curious(enumValue: enum) = when (enumValue) {
enum.first -> …
enum.second -> …
}
Kotlin compiler won’t let this code compile if we won’t handle all cases.
So the question is what if we modify the enum in the lib a and try to compile app with new version of lib a and old version of lib b?