Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. protocol ModuleOutput: class {
  2. var output: Any! { get }
  3. }
  4.  
  5. class SomeClass {
  6. var output: Any!
  7. init() {
  8. self.output = "ervwe"
  9. }
  10. func getIt() {
  11. let r = (self as! ModuleOutput).output
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement