[swift-users] Why don't I use SelfB

김찬홍 andrea9292 at gmail.com
Thu Aug 25 10:10:31 CDT 2016

This is my class...

class Human {
  static var singCount = 0
  func sing() {
    type(of: self).singCount += 1

I wanna use
   Self.singCount += 1
but I can't use it. Why compiler complain use of Self?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160826/a5ec11fb/attachment.html>

More information about the swift-users mailing list