Why 'self.self' compiles and run in swift?
问题 Yesterday I reviewed a piece of code in Swift which included this line: self.self.someProperty Which surprised me, because the word self is reserved and used as a reference to the current instance. At first I checked for that phenomenon in other languages, but all gave errors. Which wasn't a surprise - but still, why in swift does it compile and run? Second I searched in the internet about this and haven't found anything relevant... Edit I reproduced that and from my checks: self.someProperty