SHARE
TWEET

Untitled

a guest Jul 17th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ElementData {
  2.  
  3.     func validateModel<T>() -> [T] {
  4.         return [1] as! [T] // just a test return
  5.     }
  6.  
  7. }
  8.      
  9. dataObject.validateModel() // dataObject inherits from ElementData -> has access to validateModel()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top