Created
July 29, 2015 17:03
-
-
Save protocool/ecbd9016bf37c5b6f080 to your computer and use it in GitHub Desktop.
Revisions
-
protocool created this gist
Jul 29, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ import Foundation protocol P { typealias PT: NSObject = Self static func vendSpecific() -> PT? } extension P where Self: NSObject, PT == Self { static func vendSpecific() -> PT? { return nil } } class A: NSObject, P { } class B: A { typealias PT = B } func compilerSIGILL() { B.vendSpecific() }