Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func registerSingleton<T>(singleton: T) {
- register {
- singleton
- }
- }
- func register<T>(factory: () -> T) {
- print(factory.dynamicType)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement