SHOW:
|
|
- or go back to the newest paste.
1 | - | enum testEnum: String { |
1 | + | enum testEnum: String { |
2 | - | case Test |
2 | + | case Test |
3 | - | } |
3 | + | } |
4 | - | |
4 | + | |
5 | - | let myObject: AnyHashable = testEnum.Test as AnyHashable |
5 | + | let myObject: AnyHashable = testEnum.Test as AnyHashable |
6 | let newObject = myObject as? testEnum | |
7 | ||
8 | let newObject = (myObject as? AnyObject) as? testEnum | |
9 | ||
10 | - | let myObject: AnyHashable = "Test" as AnyHashable |
10 | + | let myObject: AnyHashable = "Test" as AnyHashable |
11 | let newObject = myObject as? String |