Last active
April 20, 2016 07:01
-
-
Save danielctull/9a3c133a89e2aee349991e7355301c84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
protocol File {} | |
class FileClass: File {} | |
let set = NSOrderedSet(array: [FileClass(), FileClass()]) | |
let files = set.array as? [File] // Type 'File' does not conform to protocol 'AnyObject' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment