Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol ModuleOutput: class {
- var output: Any! { get }
- }
- class SomeClass {
- var output: Any!
- init() {
- self.output = "ervwe"
- }
- func getIt() {
- let r = (self as! ModuleOutput).output
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement