Avatar
Avatar
Iceman
@swift-5.8.1 enum E: Int32, CaseIterable { case aaa case bbb = -1 case ccc } print(E.allCases.map(\.rawValue))
exit status: 1 with <stdin>:4:8: error: raw value for enum case is not unique case ccc ^ <stdin>:3:14: note: raw value auto-incremented from here case bbb = -1 ^ <stdin>:2:8: note: raw value previously used here case aaa ^ <stdin>:2:8: note: raw value implicitly auto-incremented from zero case aaa ^