mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The Swift class model does not support overriding declarations where either the overridden declaration or the overriding declaration are in an extension. However, the Objective-C class model does, so marking the declaration as @objc (when possible) will work around the limitation. Customize the "cannot override declaration in extension" diagnostic to suggest adding @objc to the overridden declaration in cases where @objc is permitted. Fixes SR-6512 / rdar://problem/35787914.
2.4 KiB
2.4 KiB