Created
June 17, 2015 06:56
-
-
Save Nadohs/9149c405a1f53a6dee23 to your computer and use it in GitHub Desktop.
where clause chaining 0_0
This file contains 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
extension DictionaryLiteralConvertible where Key == String, Value == AnyObject { | |
func magicFilter(){ | |
print("blah") | |
} | |
} | |
//WORKS | |
let test1 = [String : AnyObject]() | |
test1.magicFilter() | |
//DOESNT WORK ;( | |
let test2 = [String : String]() | |
test2.magicFilter() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment