Closed
Description
If you have to cast your int into an enum, SCXcodeSwitchExpander will expand the case statements incorrectly. If you type "(Test)test" in that order, it won't do anything. If you type "test" and then go back and add the cast, it will expand out into this red, green, blue, alpha cases.
typedef NS_ENUM(NSInteger, Test) {
TestOptionOne = 0,
TestOptionTwo,
};
@interface TestClass : NSObject
@end
@implementation TestClass
- (void)testMethod:(NSInteger)test {
switch ((Test)test) {
case red:
<#statement#>
break;
case green:
<#statement#>
break;
case blue:
<#statement#>
break;
case alpha:
<#statement#>
break;
}
}
@end
Metadata
Metadata
Assignees
Labels
No labels