Created
March 21, 2016 19:54
-
-
Save earltedly/67ab52c3c65ba22f6fa5 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 UIKit | |
protocol Foo { | |
} | |
protocol Bar { | |
} | |
class Test { | |
typealias Delegate=protocol<Foo,Bar> | |
func configure(withDelegate delegate: Delegate) { | |
} | |
} | |
class MyDelegate: Foo, Bar { | |
} | |
let test = Test() | |
test.configure(withDelegate: MyDelegate()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment