Open giann opened 1 year ago
match (n) { Locale.frFR, Locale.frBE -> { print("On parle français!"); return true; }, Locale.en -> print("we speak english!"), default -> print("Single statement is allowed"), }
If evaluated expression is an EnumInstance we can detect missing cases.
EnumInstance
If evaluated expression is an
EnumInstance
we can detect missing cases.