https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
f

florent

12/06/2023, 12:39 PM
Hi, I am using kotlin 2.0 beta1, if you have an exhaustive when that use a sealed interface, if you add a new object to your sealed interface, the when compiles even if you don't add the new case. To reproduce the issue, I think you need to have the sealed interface and the when on a different package and file
k

kirillrakhman

12/06/2023, 12:59 PM
Please create an issue. Sounds like an incremental compilation problem.
f

florent

12/06/2023, 1:06 PM
yes looks like it, it works fine if I clean the project everytime
thank you color 3
👍 2
👍🏾 1
2 Views