Avatar
テストケース見る限り、それはできなさそう。 https://github.com/apple/swift/pull/23934/files#diff-d7c6f9df7278996950aba8a8ba87de75R176
doStuff({ [self = self.x] in x+1 }) // expected-note {{variable other than 'self' captured here under the name 'self' does not enable implicit 'self'}} expected-warning {{capture 'self' was never used}} expected-error {{reference to property 'x' in closure requires explicit use of 'self' to make capture semantics explicit}}