Created
October 22, 2015 03:24
-
-
Save jhurray/134f37bdd65f93aee9f6 to your computer and use it in GitHub Desktop.
Help me!
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
| import UIKit | |
| struct typeable<T> { | |
| let value : String = "hello world" | |
| } | |
| protocol inside { | |
| func __myFunction() -> typeable<inside> | |
| } | |
| protocol outside : inside { | |
| typealias MyType : inside | |
| func myFunction() -> typeable<MyType> | |
| } | |
| extension outside { | |
| final func __myFunction() -> typeable<inside> { | |
| return self.myFunction() | |
| } | |
| } | |
| struct thing : outside { | |
| typealias MyType = thing | |
| func myFunction() -> typeable<thing> { | |
| return typeable<thing>() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment