I have an expect/actual enum, on Android it is typ...
# multiplatform
m
I have an expect/actual enum, on Android it is typealiased to a third party enum with the same set of enum values. On iOS, I just created the enum. Now I have a when block on the enum where I am not using it as an expression. On both platforms it compiles without an else branch. On Android having the else branch is fine, but on iOS it creates a warning.
'when' is exhaustive so 'else' is redundant here
. This breaks the build due to
-Werror
. If I remove the else block, I can run the unit tests for both platforms, but doing a full build produces an error in
compileCommonMainKotlinMetadata
saying that the
when
must be exhaustive.
Does anyone know how to suppress the ``'when' is exhaustive so 'else' is redundant here` warning?