angryziber / kotlin-puzzlers

A collection of Kotlin Puzzlers
419 stars 58 forks source link

Kotlin: Sealed class not exaustive when checked in statement #43

Closed mangatmodi closed 5 years ago

mangatmodi commented 5 years ago

I found this case counter intuitive to the defination of sealed class. Looks like a special case, hence deserved a puzzler.