Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if let a = TestEnum.fromRaw("a") {
- prinln(a.toRaw())
- }
- 'TestEnum' does not have a member named 'toRaw'
- 'TestEnum.Type' does not have a member named 'fromRaw'
- if let a = TestEnum(rawValue: "a") {
- println(a.rawValue)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement