mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These warnings are turning out to be pretty noisy for code that declares IUOs (e.g. for @IBOutlets) and then passes them to Objective-C APIs with parameters declared as _Nonnull id. Since we bridge non-nil values successfully in most cases, and previuosly written and correctly executing code is either not seeing nil values passed in or are handling the nil (which is bridged as NSNull), it seems like a nuisance to warn about these for existing Swift versions. We'll conditionalize the warning, and then users can deal with these when moving to the new language version. Fixes: rdar://problem/39886178
3.6 KiB
3.6 KiB