mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When synthesizing the default initializer for an actor, we'd sometimes hit a cycle when that initializer needs to chain to NSObject.init. The cycle only happens because we ask if the initializer we're trying to synthesize is a convenience init in a scenario which only applies to non-final classes. Since all actors are effectively "final" classes, it's valid to workaround the cycle by only asking that initializer question for non-final classes, thus breaking the cycle.
2.5 KiB
2.5 KiB