mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This shows up with swift_wrapper typedefs, which get imported into Swift as structs. If someone makes an extension of a swift_wrapper type, but the swift_wrapper is only applied in Swift 4 mode, that extension will break any Swift 3 clients. Recover by just dropping the extension entirely. There's still more complexity around extensions---what if a requirement can't be deserialized? what if something's depending on the protocol conformance provided by the extension?---but the missing base type case should be pretty safe. If you can't see the type at all, things that depend on its conformances are already in trouble. rdar://problem/33636733
62 KiB
62 KiB