Created
June 21, 2015 11:47
-
-
Save drewcrawford/4f31ad1d28aae00211ba 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 | |
var str = "Hello, playground" | |
import Foundation | |
class POSIXSocketNotificationHandle { } | |
protocol Nextable { | |
typealias NEXT | |
var next : NEXT { get } | |
} | |
protocol Notifiable { | |
} | |
protocol NotifiableProxy { | |
var notifiableProxy : Notifiable { get } | |
} | |
extension Nextable where Self.NEXT : Notifiable { | |
var notifiableProxy : Notifiable { | |
get { | |
return self.next | |
} | |
} | |
} | |
extension Nextable where Self.NEXT : NotifiableProxy { | |
var notifiableProxy : Notifiable { | |
get { | |
return self.next.notifiableProxy | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment