mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Call Sema::BuildReturnStmt instead of ReturnStmt::Create so that an implicit cast of kind ARCProduceObject is inserted in the AST. rdar://133731973
13 lines
206 B
Objective-C
13 lines
206 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface C : NSObject
|
|
@end
|
|
|
|
struct Base {
|
|
C *_Nonnull non_virtual_method() const;
|
|
virtual C *_Nonnull virtual_method() const;
|
|
int a;
|
|
};
|
|
|
|
struct Derived : Base {};
|