[swift-dev] "Near-miss" warnings for protocol conformances

Douglas Gregor dgregor at apple.com
Wed Nov 1 01:09:53 CDT 2017



> On Oct 31, 2017, at 11:08 PM, Ted Kremenek <kremenek at apple.com> wrote:
> 
> 
> 
>> On Oct 26, 2017, at 9:28 PM, Douglas Gregor via swift-dev <swift-dev at swift.org> wrote:
>> 
>> Unlabeled single-value initializers are probably going to cause a number of false positives, because we can’t figure out which one we meant.
> 
> Hi Doug,
> 
> This all looks very promising. Do you have any thoughts about how one would go about suppressing false positives?


Yes, you can move the declaration it’s warning about to a different extension to suppress the false positive.

	- Doug



More information about the swift-dev mailing list