Closed keith closed 1 year ago
With this code:
class Thing { var a: String? { nil } func foo() { let b = "" { [weak a = b] _ in } } }
And formatting with --self insert, you get:
--self insert
class Thing { var a: String? { nil } func foo() { let b = "" { [weak self.a = b] _ in } } }
Which is invalid but also missing the fact that the a in the capture list is attempting to shadow the member variable.
a
@keith fixed in 0.51.5
With this code:
And formatting with
--self insert
, you get:Which is invalid but also missing the fact that the
a
in the capture list is attempting to shadow the member variable.