/* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import @protocol A @end @protocol B @end @protocol C @end @protocol D @end @interface Foo : NSObject + (instancetype)newWithA:(id)A; // A is a known "bad" protocol, so fire here + (instancetype)newWithB:(id)B; // B inherits from A, so this line also fires + (instancetype)newWithC:(id)C; // C eventually inherits from A; also fires + (instancetype)newWithCs:(NSArray>*)Cs; // Collections should also fire + (void)newWithD:(id)D; // D doesn't inherit from A; don't fire @end