Hi, Switch-case statement fails for enums of strings because it is not of integral type. For the following code: enum strEnum : string {strA = "strA", strB = "strB"}; strEnum se = strEnum.strA; switch (strEnum) { case strEnum.strA: break; }; I get the error message: Error: 'strEnum' is not of integral type, it is a strEnum In the same moment, I can workaround that by: string realStr = strEnum.strA; switch (realStr) { case strEnum.strA: break; }; Unfortunately it doesn't help in my case where I want use final switch: final switch (strEnum) { case strEnum.strA: break; case strEnum.strB: break; }; Best Regards Blazej
*** This issue has been marked as a duplicate of issue 2950 ***