[swift-users] Strange Error about Default values

Wang LiMing uomb at outlook.com
Wed Jan 18 08:06:01 CST 2017


In latest Xcode(8.2.1), playground

struct S1 {
  var v = 1 {
    get {                   // report Error: Use of unresolved identifier ‘get'
      return self.v.    // report Error: Use of unresolved identifier ‘self'
   }
}

I can’t found the reason about the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170118/adf40c56/attachment.html>


More information about the swift-users mailing list