# getting-started

Colton Idle

01/08/2022, 1:17 PM
I'm using kotlin 1.6.10. I thought it enforced exhaustive whens? I get this warning, but no error "Non exhaustive 'when' statements on enum will be prohibited in 1.7, add 'BLAH' branch or"


01/09/2022, 10:29 AM
Errors will be reported on such whens in 1.7.0 Warning in 1.6 is nessesary because adding new error for previously correct language construction is a breakin change which turns green code to red without any warnings. And such lack of deprecation cycle (green code -> warning -> error) may prevent smoth migration from one major version of language to another
👍 2