Created
June 6, 2014 00:51
-
-
Save Nub/83f74bfc6badf48abcdc 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
| // Playground - noun: a place where people can play | |
| import Cocoa | |
| func instanceOfClass<T>(aClass: T.Type) -> AnyObject { | |
| return aClass() | |
| } | |
| var a = instanceOfClass(String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment