ios - How to return Collection of Self type? -


how return objects of type self subclass of object calling function returns subclass type instead of object type?

this doesn't work, if replace self object, works don't result i'm looking for.

public extension object {      class func objects() -> results<self> {         return try! realm().objects(self)     }  } 


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -