False positive for rule prefer_self_in_static_references
#5118
Labels
bug
Unexpected and reproducible misbehavior.
prefer_self_in_static_references
#5118
New Issue Checklist
Describe the bug
The following is a triggering example with this rule enabled, yet it results in a compiler error:
error: covariant ‘Self’ type cannot be referenced from a stored property initializer
This will incorrectly convert
private(set) var current: Int = A.start {
toprivate(set) var current: Int = Self.start {
However this rule works correctly and doesn't trigger without the
didSet
block:Environment
The text was updated successfully, but these errors were encountered: