Open NachoSoto opened 2 years ago
Describe the bug Using weak on a Sendable class leads to a bad diagnostic.
weak
Sendable
Steps To Reproduce
final class A: NSObject, Sendable { lazy var a: String = "test" }
Expected behavior
Stored property 'a' of 'Sendable'-conforming class 'A' is mutable
Actual behavior
Stored property '$__lazystorage$_a' of 'Sendable'-conforming class 'A' is mutable
Environment (please fill out the following information)
Tracked internally as rdar://86926732
This is still happening on Swift 6.
Describe the bug Using
weak
on aSendable
class leads to a bad diagnostic.Steps To Reproduce
Expected behavior
Actual behavior
Environment (please fill out the following information)