mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 12:36:10 +00:00

This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d. This commit wasn't reviewed ahead of time and significant concerns were raised immediately after it landed. According to our developer policy this warrants immediate revert of the commit. https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy Differential Revision: https://reviews.llvm.org/D155509
16 lines
687 B
Objective-C
16 lines
687 B
Objective-C
// RUN: %clang_cc1 -fobjc-arc -fobjc-runtime-has-weak -Wnonnull %s -verify
|
|
//rdar://19211059
|
|
|
|
@interface NSObject @end
|
|
|
|
@interface Base : NSObject
|
|
- (nonnull id)bad:(nullable id)obj; // expected-note 2 {{previous declaration is here}}
|
|
- (nullable id)notAsBad:(nonnull id)obj;
|
|
@end
|
|
|
|
@interface Sub : Base
|
|
- (nullable id)bad:(nonnull id)obj; // expected-warning {{conflicting nullability specifier on return types, 'nullable' conflicts with existing specifier 'nonnull'}} \
|
|
// expected-warning {{conflicting nullability specifier on parameter types, 'nonnull' conflicts with existing specifier 'nullable'}}
|
|
- (nonnull id)notAsBad:(nullable id)obj;
|
|
@end
|